chore: pin GH commits and switch to golangci-lint (#4444)

* chore: pin GH commits

* switch to golangci-lint-action

* fix lint issues
This commit is contained in:
David Zhao
2026-04-11 13:04:22 -07:00
committed by GitHub
parent 2974ba879f
commit 4b3856125c
37 changed files with 127 additions and 108 deletions
+2 -2
View File
@@ -319,7 +319,7 @@ func (r *rtpStatsBaseLite) deltaInfoLite(
snapshotLiteID uint32,
extStartSN uint64,
extHighestSN uint64,
) (deltaInfoLite *RTPDeltaInfoLite, err error, loggingFields []any) {
) (deltaInfoLite *RTPDeltaInfoLite, loggingFields []any, err error) {
then, now := r.getAndResetSnapshotLite(snapshotLiteID, extStartSN, extHighestSN)
if now == nil || then == nil {
return
@@ -421,7 +421,7 @@ func (r *rtpStatsBaseLite) marshalLogObject(e zapcore.ObjectEncoder, packetsExpe
if sb.Len() > 0 {
sb.WriteString(", ")
}
sb.WriteString(fmt.Sprintf("%d:%d", burst+1, count))
fmt.Fprintf(&sb, "%d:%d", burst+1, count)
}
if sb.Len() > 0 {
e.AddString("gapHistogram", "["+sb.String()+"]")