chore: update row state using provider

This commit is contained in:
appflowy
2022-04-02 23:48:56 +08:00
parent ca45673a9e
commit 6ac2617113
4 changed files with 48 additions and 38 deletions

View File

@ -24,8 +24,7 @@ pub struct GridBlockMetaPad {
impl GridBlockMetaPad {
pub fn from_delta(delta: GridBlockMetaDelta) -> CollaborateResult<Self> {
let s = delta.to_str()?;
tracing::info!("delta: {}", delta);
tracing::info!("{}", s);
tracing::trace!("{}", s);
let meta_data: GridBlockMetaData = serde_json::from_str(&s).map_err(|e| {
let msg = format!("Deserialize delta to block meta failed: {}", e);
CollaborateError::internal().context(msg)