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