clean up logs and imports (#400)

This commit is contained in:
David Colburn
2022-02-03 14:20:19 -07:00
committed by GitHub
parent 7297a57f3d
commit 7bbd238188
24 changed files with 44 additions and 40 deletions
+3 -2
View File
@@ -4,8 +4,9 @@ import (
"sync"
"time"
"github.com/livekit/livekit-server/pkg/sfu/buffer"
"github.com/livekit/protocol/logger"
"github.com/livekit/livekit-server/pkg/sfu/buffer"
)
const (
@@ -127,7 +128,7 @@ func (n *sequencer) push(sn, offSn uint16, timeStamp uint32, layer uint8, head b
step = n.step - int(n.headSN-offSn)
if step < 0 {
if step*-1 >= n.max {
n.logger.Infow("old packet received, can not be sequenced", "head", sn, "received", offSn)
n.logger.Debugw("old packet received, can not be sequenced", "head", sn, "received", offSn)
return nil
}
step = n.max + step