Skip to content

Commit

Permalink
Linter
Browse files Browse the repository at this point in the history
Try to make linter happy
  • Loading branch information
sterlingdeng committed Nov 12, 2024
1 parent 33c0388 commit 00dfb3e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/stats/stats_recorder.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Check warning on line 176 in pkg/stats/stats_recorder.go

View check run for this annotation

Codecov / codecov/patch

pkg/stats/stats_recorder.go#L176

Added line #L176 was not covered by tests
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)

Check warning on line 182 in pkg/stats/stats_recorder.go

View check run for this annotation

Codecov / codecov/patch

pkg/stats/stats_recorder.go#L182

Added line #L182 was not covered by tests
continue
}
latestStats.lastSenderReports = append(latestStats.lastSenderReports, rtcpPkt.NTPTime)
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 00dfb3e

Please sign in to comment.