Consuming SignedOp when it's handled
This commit is contained in:
@@ -46,7 +46,7 @@ impl SideNode {
|
||||
}
|
||||
match self.incoming_receiver.try_recv() {
|
||||
Ok(incoming) => {
|
||||
self.handle_incoming(&incoming);
|
||||
self.handle_incoming(incoming);
|
||||
}
|
||||
Err(_) => {} // ignore empty channel errors in this PoC
|
||||
}
|
||||
@@ -59,9 +59,9 @@ impl SideNode {
|
||||
self.handle.call(to_send).unwrap();
|
||||
}
|
||||
|
||||
fn handle_incoming(&mut self, incoming: &SignedOp) {
|
||||
fn handle_incoming(&mut self, incoming: SignedOp) {
|
||||
println!("WINNNINGINGINGINGINGIGNIGN");
|
||||
self.crdt.apply(incoming.clone());
|
||||
self.crdt.apply(incoming);
|
||||
}
|
||||
|
||||
pub(crate) fn add_transaction_local(
|
||||
|
||||
Reference in New Issue
Block a user