chore(gosec): enable gosec and address findings

This commit is contained in:
Hein
2026-09-30 13:16:12 +02:00
parent 9533c3a0ed
commit f66930c3c9
37 changed files with 133 additions and 122 deletions
+2 -2
View File
@@ -584,7 +584,7 @@ func (dp *DatabaseProvider) pollEvents() {
dp.stats.EventsConsumed.Add(1)
sub.lastSeenID = event.ID
case <-sub.ctx.Done():
rows.Close()
rows.Close() //nolint:gosec // G104: best-effort call, error intentionally ignored
return
default:
// Channel full, skip
@@ -595,7 +595,7 @@ func (dp *DatabaseProvider) pollEvents() {
sub.lastSeenID = event.ID
}
rows.Close()
rows.Close() //nolint:gosec // G104: best-effort call, error intentionally ignored
}
}