feat: add rate limiter #3
Annotations
7 errors and 1 warning
golangci-lint:
pkg/infrared/protocol/packet.go#L55
shadow: declaration of "err" shadows declaration at line 42 (govet)
|
golangci-lint:
pkg/infrared/infrared.go#L170
commentFormatting: put a space between `//` and comment text (gocritic)
|
golangci-lint:
pkg/infrared/rate_limiter.go#L89
mnd: Magic number: 64, in <argument> detected (gomnd)
|
golangci-lint:
pkg/infrared/rate_limiter.go#L210
mnd: Magic number: 3, in <operation> detected (gomnd)
|
golangci-lint:
pkg/infrared/server.go#L180
mnd: Magic number: 30, in <assign> detected (gomnd)
|
golangci-lint:
pkg/infrared/rate_limiter.go#L227
fmt.Sprintf can be replaced with faster strconv.FormatInt (perfsprint)
|
golangci-lint
issues found
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-go@v4, golangci/golangci-lint-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
The logs for this run have expired and are no longer available.
Loading