mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
chore: update golang to 1.24.1 (#17035)
- Update go.mod to use Go 1.24.1 - Update GitHub Actions setup-go action to use Go 1.24.1 - Fix linting issues with golangci-lint by: - Updating to golangci-lint v1.57.1 (more compatible with Go 1.24.1) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <claude@anthropic.com>
This commit is contained in:
@@ -209,7 +209,9 @@ func (n *notifier) process(ctx context.Context, success chan<- dispatchResult, f
|
||||
// messages until they are dispatched - or until the lease expires (in exceptional cases).
|
||||
func (n *notifier) fetch(ctx context.Context) ([]database.AcquireNotificationMessagesRow, error) {
|
||||
msgs, err := n.store.AcquireNotificationMessages(ctx, database.AcquireNotificationMessagesParams{
|
||||
Count: int32(n.cfg.LeaseCount),
|
||||
// #nosec G115 - Safe conversion for lease count which is expected to be within int32 range
|
||||
Count: int32(n.cfg.LeaseCount),
|
||||
// #nosec G115 - Safe conversion for max send attempts which is expected to be within int32 range
|
||||
MaxAttemptCount: int32(n.cfg.MaxSendAttempts),
|
||||
NotifierID: n.id,
|
||||
LeaseSeconds: int32(n.cfg.LeasePeriod.Value().Seconds()),
|
||||
@@ -336,6 +338,7 @@ func (n *notifier) newFailedDispatch(msg database.AcquireNotificationMessagesRow
|
||||
var result string
|
||||
|
||||
// If retryable and not the last attempt, it's a temporary failure.
|
||||
// #nosec G115 - Safe conversion as MaxSendAttempts is expected to be small enough to fit in int32
|
||||
if retryable && msg.AttemptCount < int32(n.cfg.MaxSendAttempts)-1 {
|
||||
result = ResultTempFail
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user