style: apply golangci-lint fixes (golines)
This commit is contained in:
parent
ee1db7699c
commit
b811d8cd42
1 changed files with 6 additions and 1 deletions
|
|
@ -699,7 +699,12 @@ func splitByLength(content string, maxLen int) []string {
|
|||
// - ErrNotRunning / ErrSendFailed: permanent, no retry
|
||||
// - ErrRateLimit: fixed delay retry
|
||||
// - ErrTemporary / unknown: exponential backoff retry
|
||||
func (m *Manager) sendWithRetry(ctx context.Context, name string, w *channelWorker, msg bus.OutboundMessage) ([]string, bool) {
|
||||
func (m *Manager) sendWithRetry(
|
||||
ctx context.Context,
|
||||
name string,
|
||||
w *channelWorker,
|
||||
msg bus.OutboundMessage,
|
||||
) ([]string, bool) {
|
||||
// Rate limit: wait for token
|
||||
if err := w.limiter.Wait(ctx); err != nil {
|
||||
// ctx canceled, shutting down
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue