Skip to content

Commit

Permalink
Send updates blocking
Browse files Browse the repository at this point in the history
  • Loading branch information
swick committed Dec 8, 2024
1 parent 632cdea commit 4582284
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/application.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ mod imp {
println!("app: {}", text);
let mut doc = self.automerge.borrow_mut();
doc.update_text(&self.root, text).unwrap();
self.tx.send(doc.save());
if let Err(e) = self.tx.blocking_send(doc.save()) {
println!("{}", e);
}
}
}

Expand Down

0 comments on commit 4582284

Please sign in to comment.