update lint in pics/audit

This commit is contained in:
Anderson Valério 2024-12-09 22:09:52 -03:00
parent 67b8fd0061
commit f321907ee7
No known key found for this signature in database
GPG Key ID: 92D38E56BFF005A0
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ func NewAuditClient(opts *ClientOpts) (*Client, error) {
SetRetryWaitTime(5 * time.Second).
SetRetryMaxWaitTime(20 * time.Second).
SetContentLength(true).
SetRetryAfter(func(client *resty.Client, resp *resty.Response) (time.Duration, error) {
SetRetryAfter(func(_ *resty.Client, _ *resty.Response) (time.Duration, error) {
return 0, fmt.Errorf("%w: retry quota exceeded", ErrPersitAuditEvent)
})
return &Client{enabled: opts.Enabled, apiSignature: apiSignature, client: client, opts: opts}, nil