Move receive_index to correct place

This commit is contained in:
Stephen Akridge 2018-06-04 14:29:14 -07:00 committed by Greg Fitzgerald
parent 246edecf53
commit ec3569aa39
2 changed files with 2 additions and 2 deletions

View File

@ -249,8 +249,6 @@ impl Crdt {
.expect("set_index in pub fn broadcast");
}
*receive_index += blobs.len() as u64;
Ok(())
}

View File

@ -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(())