mirror of
https://github.com/n0-computer/noq.git
synced 2026-09-18 09:15:37 +00:00
Fix ack decoding
This commit is contained in:
+1
-1
@@ -415,7 +415,7 @@ impl<'a> Iterator for AckIter<'a> {
|
||||
self.next -= 1;
|
||||
self.block_size -= 1;
|
||||
if self.block_size == 0 && self.data.has_remaining() {
|
||||
self.next -= varint::read(&mut self.data).unwrap();
|
||||
self.next -= varint::read(&mut self.data).unwrap() + 1;
|
||||
self.block_size = varint::read(&mut self.data).unwrap() + 1;
|
||||
}
|
||||
Some(result)
|
||||
|
||||
Reference in New Issue
Block a user