Use padding for probing (#434)
* WIP commit * WIP commit * WIP commit * WIP commit * WIP commit * WIP commit * WIP commit * WIP commit * Clean up * Remove debug * Remove unneeded change * fix test * Remove incorrect comment * Reset probe after estimate trends down
This commit is contained in:
@@ -34,7 +34,7 @@ func (b *Bucket) AddPacket(pkt []byte) ([]byte, error) {
|
||||
}
|
||||
diff := sn - b.headSN
|
||||
if diff == 0 || diff > (1<<15) {
|
||||
// duplicate of lsat packet or out-of-order
|
||||
// duplicate of last packet or out-of-order
|
||||
return b.set(sn, pkt)
|
||||
}
|
||||
b.headSN = sn
|
||||
|
||||
Reference in New Issue
Block a user