merge develop into master #21
@ -2,7 +2,6 @@ package congestion
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"sort"
|
||||
"testing"
|
||||
@ -52,7 +51,6 @@ func (n *newRenoTest) Start(ctx context.Context) {
|
||||
select {
|
||||
case p := <-tp:
|
||||
s := p.t.Add(n.halfRtt).Sub(time.Now())
|
||||
fmt.Printf("delayed packet for %dms\n", s.Milliseconds())
|
||||
time.Sleep(s)
|
||||
cp <- p.p
|
||||
case <-ctx.Done():
|
||||
@ -84,7 +82,6 @@ func (n *newRenoTest) RunSideA(ctx context.Context) {
|
||||
case <-ctx.Done():
|
||||
return
|
||||
case p := <-n.aInbound:
|
||||
fmt.Printf("side A received: %d,%d,%d\n", p.seq, p.nack, p.ack)
|
||||
n.sideA.ReceivedPacket(p.seq, p.nack, p.ack)
|
||||
}
|
||||
}
|
||||
@ -119,7 +116,6 @@ func (n *newRenoTest) RunSideB(ctx context.Context) {
|
||||
case <-ctx.Done():
|
||||
return
|
||||
case p := <-n.bInbound:
|
||||
fmt.Printf("side B received: %d,%d,%d\n", p.seq, p.nack, p.ack)
|
||||
n.sideB.ReceivedPacket(p.seq, p.nack, p.ack)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user