Move receive_index to correct place
This commit is contained in:
parent
246edecf53
commit
ec3569aa39
|
@ -249,8 +249,6 @@ impl Crdt {
|
|||
.expect("set_index in pub fn broadcast");
|
||||
}
|
||||
|
||||
*receive_index += blobs.len() as u64;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
|
@ -457,6 +457,8 @@ fn broadcast(
|
|||
}
|
||||
}
|
||||
|
||||
*receive_index += blobs_len as u64;
|
||||
|
||||
// Send blobs out from the window
|
||||
Crdt::broadcast(crdt, &window, &sock, transmit_index)?;
|
||||
Ok(())
|
||||
|
|
Loading…
Reference in New Issue