Skip to content

Commit

Permalink
update patch-db (#1831)
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-bonez authored Sep 26, 2022
1 parent abf297d commit 18336e4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 76 deletions.
35 changes: 1 addition & 34 deletions backend/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions backend/src/db/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ async fn subscribe_to_session_kill(
async fn deal_with_messages(
_has_valid_authentication: HasValidSession,
mut kill: oneshot::Receiver<()>,
sub: patch_db::Subscriber,
mut sub: patch_db::Subscriber,
mut stream: WebSocketStream<Upgraded>,
) -> Result<(), Error> {
loop {
Expand All @@ -93,7 +93,7 @@ async fn deal_with_messages(
.with_kind(crate::ErrorKind::Network)?;
return Ok(())
}
new_rev = sub.recv_async().fuse() => {
new_rev = sub.recv().fuse() => {
let rev = new_rev.expect("UNREACHABLE: patch-db is dropped");
stream
.send(Message::Text(serde_json::to_string(&rev).with_kind(crate::ErrorKind::Serialization)?))
Expand Down
39 changes: 0 additions & 39 deletions libs/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 18336e4

Please sign in to comment.