Replace time.After with a timer created only once for a function call. - #1966
Open
alexeykiselev wants to merge 15 commits into
Open
alexeykiselev wants to merge 15 commits into
alexeykiselev wants to merge 15 commits into
GitHub Advanced Security / gosec
failed
Jul 2, 2026 in 9s
2 new alerts including 2 errors
New alerts in code changed by this pull request
- 2 errors
Alerts not introduced by this pull request might have been detected because the code changes were too large.
See annotations below for details.
Annotations
Check failure on line 160 in pkg/node/peers/score_selector.go
Code scanning / gosec
Use of weak random number generator (math/rand or math/rand/v2 instead of crypto/rand) Error
Check failure on line 968 in pkg/proto/proto.go
Code scanning / gosec
Use of weak random number generator (math/rand or math/rand/v2 instead of crypto/rand) Error
Loading