[golang] fix lint warnings
This commit is contained in:
parent
befa188552
commit
e3541e4e7f
4 changed files with 7 additions and 16 deletions
|
@ -196,7 +196,7 @@ func (c *Client) sendOne(method string, uri *url.URL, payload any) (*APIMessage,
|
|||
select {
|
||||
case <-c.ctx.Done():
|
||||
return nil, fmt.Errorf("failed to sendOne: ctx cancelled")
|
||||
case <-time.After(e.RetryAfter.Duration() * time.Second):
|
||||
case <-time.After(time.Until(e.Reset)):
|
||||
}
|
||||
return c.sendOne(method, uri, payload)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue