Address comments from #1998 (#2006)

This commit is contained in:
David Zhao
2023-08-27 22:50:36 -07:00
committed by GitHub
parent 35f5629910
commit 64bcef28aa
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1331,7 +1331,7 @@ func BroadcastDataPacketForRoom(r types.Room, source types.LocalParticipant, dp
utils.ParallelExec(destParticipants, dataForwardLoadBalanceThreshold, 1, func(op types.LocalParticipant) { utils.ParallelExec(destParticipants, dataForwardLoadBalanceThreshold, 1, func(op types.LocalParticipant) {
err := op.SendDataPacket(dp, dpData) err := op.SendDataPacket(dp, dpData)
if err != nil && !errors.Is(err, io.ErrClosedPipe) && !errors.Is(err, psrpc.Canceled) && if err != nil && !errors.Is(err, io.ErrClosedPipe) && !errors.Is(err, psrpc.Canceled) &&
errors.Is(err, psrpc.ErrStreamClosed) { !errors.Is(err, psrpc.ErrStreamClosed) {
op.GetLogger().Infow("send data packet error", "error", err) op.GetLogger().Infow("send data packet error", "error", err)
} }
}) })
+1 -1
View File
@@ -838,7 +838,7 @@ func (r *RTPStats) maybeAdjustFirstPacketTime(ets uint64) {
"extStartTS", r.timestamp.GetExtendedStart(), "extStartTS", r.timestamp.GetExtendedStart(),
) )
if r.firstTime.Sub(firstTime) > firstPacketTimeAdjustThreshold { if r.firstTime.Sub(firstTime) > firstPacketTimeAdjustThreshold {
r.logger.Debugw("first packet time adjustment too big, ignoring", r.logger.Infow("first packet time adjustment too big, ignoring",
"startTime", r.startTime.String(), "startTime", r.startTime.String(),
"nowTime", now.String(), "nowTime", now.String(),
"before", r.firstTime.String(), "before", r.firstTime.String(),