Experimenting with distributed nodes. Wish I had more logging!
This commit is contained in:
@@ -41,14 +41,14 @@ pub(crate) async fn send(
|
||||
let transaction = generate_transaction(count, keys.public().to_string());
|
||||
|
||||
// next job is to keep adding to this guy
|
||||
let next = bft_crdt.doc.list.ops.len();
|
||||
let signed_op = bft_crdt
|
||||
.doc
|
||||
.list
|
||||
.insert_idx(0, transaction.clone())
|
||||
.insert_idx(next - 1, transaction.clone())
|
||||
.sign(&keys);
|
||||
println!("SignedOp being sent is: {:?}", signed_op);
|
||||
// println!("SignedOp being sent is: {:?}", signed_op);
|
||||
|
||||
println!("Sending: {:?}", signed_op);
|
||||
Ok(ws
|
||||
.send_text(serde_json::to_string(&signed_op).unwrap())
|
||||
.await?)
|
||||
|
||||
Reference in New Issue
Block a user