mirror of
https://github.com/soypat/lneto.git
synced 2026-08-21 15:09:05 +00:00
rigurously fix all tests
This commit is contained in:
+4
-1
@@ -179,11 +179,14 @@ func (rtx *ringTx) RecvACK(ack Value) error {
|
||||
}
|
||||
|
||||
func (rtx *ringTx) sentAndUnsentBuffer() internal.Ring {
|
||||
off := rtx.sentoff
|
||||
end := rtx.unsentend
|
||||
if end == 0 {
|
||||
end = rtx.sentend
|
||||
} else if rtx.sentend == 0 {
|
||||
off = rtx.unsentoff
|
||||
}
|
||||
return internal.Ring{Buf: rtx.rawbuf, Off: rtx.sentoff, End: end}
|
||||
return internal.Ring{Buf: rtx.rawbuf, Off: off, End: end}
|
||||
}
|
||||
|
||||
func (rtx *ringTx) unsentRing() (internal.Ring, int) {
|
||||
|
||||
Reference in New Issue
Block a user