diff --git a/lib/rest/rest.go b/lib/rest/rest.go index e4cd74cef..92edc64fe 100644 --- a/lib/rest/rest.go +++ b/lib/rest/rest.go @@ -269,7 +269,9 @@ func (api *Client) Call(ctx context.Context, opts *Opts) (resp *http.Response, e c = api.c } if api.signer != nil { + api.mu.RUnlock() err = api.signer(req) + api.mu.RLock() if err != nil { return nil, errors.Wrap(err, "signer failed") }