Minor cleanup

This commit is contained in:
Dave Hrycyszyn
2024-06-07 18:20:02 +01:00
parent 5d6a1e806a
commit 6f756d4fb6

View File

@@ -39,8 +39,7 @@ impl ezsockets::ClientExt for WebSocketClient {
async fn on_text(&mut self, text: String) -> Result<(), ezsockets::Error> {
tracing::info!("received message: {text}");
// let incoming: bft_json_crdt::json_crdt::SignedOp = serde_json::from_str(&text).unwrap();
// let author = base64::engine::general_purpose::STANDARD.encode(&incoming.author());
let incoming: bft_json_crdt::json_crdt::SignedOp = serde_json::from_str(&text).unwrap();
// self.bft_crdt.apply(incoming.clone());
Ok(())
}
@@ -55,5 +54,3 @@ impl ezsockets::ClientExt for WebSocketClient {
Ok(())
}
}
// pub(crate) async fn start(self, keys: Ed25519KeyPair, bft_crdt: &mut BaseCrdt<CrdtList>) {}