This commit is contained in:
Dave Hrycyszyn
2024-06-05 11:04:55 +01:00
parent 248ced8287
commit e8ce68b9bf

View File

@@ -32,10 +32,11 @@ pub(crate) async fn start() -> Result<(), websockets::WebSocketError> {
println!("Sending: {}", json);
ws.send_text(json.clone()).await?;
// TODO: bft_crdt.apply() changes in here when we receive socket input from other nodes
let msg = ws.receive().await?;
println!("Received: {:?}", msg);
// TODO: bft_crdt.apply() changes in here when we receive socket input from other nodes
bft_crdt.apply(msg);
println!("New crdt state is: {}", bft_crdt.doc.view())
}
}