From 00dfb3e69232279387bfd961d7bbd3e41661e5cf Mon Sep 17 00:00:00 2001 From: Sterling Deng Date: Tue, 12 Nov 2024 10:43:49 -0800 Subject: [PATCH] Linter Try to make linter happy --- pkg/stats/stats_recorder.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/stats/stats_recorder.go b/pkg/stats/stats_recorder.go index a35d062..430019b 100644 --- a/pkg/stats/stats_recorder.go +++ b/pkg/stats/stats_recorder.go @@ -161,25 +161,25 @@ func (r *recorder) recordOutgoingRTCP(latestStats internalStats, v *outgoingRTCP switch rtcpPkt := pkt.(type) { case *rtcp.FullIntraRequest: if !contains(pkt.DestinationSSRC(), r.ssrc) { - r.logger.Debugf("skipping outgoing RTCP pkt: %v\n", pkt) + r.logger.Debugf("skipping outgoing RTCP pkt: %v", pkt) continue } latestStats.InboundRTPStreamStats.FIRCount++ case *rtcp.PictureLossIndication: if !contains(pkt.DestinationSSRC(), r.ssrc) { - r.logger.Debugf("skipping outgoing RTCP pkt: %v\n", pkt) + r.logger.Debugf("skipping outgoing RTCP pkt: %v", pkt) continue } latestStats.InboundRTPStreamStats.PLICount++ case *rtcp.TransportLayerNack: if !contains(pkt.DestinationSSRC(), r.ssrc) { - r.logger.Debugf("skipping outgoing RTCP pkt: %v\n", pkt) + r.logger.Debugf("skipping outgoing RTCP pkt: %v", pkt) continue } latestStats.InboundRTPStreamStats.NACKCount++ case *rtcp.SenderReport: if !contains(pkt.DestinationSSRC(), r.ssrc) { - r.logger.Debugf("skipping outgoing RTCP pkt: %v\n", pkt) + r.logger.Debugf("skipping outgoing RTCP pkt: %v", pkt) continue } latestStats.lastSenderReports = append(latestStats.lastSenderReports, rtcpPkt.NTPTime) @@ -276,7 +276,7 @@ func contains(ls []uint32, e uint32) bool { func (r *recorder) recordIncomingRTCP(latestStats internalStats, v *incomingRTCP) internalStats { for _, pkt := range v.pkts { if !contains(pkt.DestinationSSRC(), r.ssrc) { - r.logger.Debugf("skipping incoming RTCP pkt: %v\n", pkt) + r.logger.Debugf("skipping incoming RTCP pkt: %v", pkt) continue } switch pkt := pkt.(type) {