Merge pull request #2918 from appleboy/lint
chore(rpc): remove redundant check
This commit is contained in:
commit
296471d489
1 changed files with 1 additions and 1 deletions
|
@ -306,7 +306,7 @@ func retryFunc(ctx context.Context, resp *http.Response, err error) (bool, error
|
|||
// stream. This stream is temporary and ephemeral, and losing
|
||||
// log lines will not negatively impact the final persisted
|
||||
// log entries.
|
||||
if resp != nil && resp.Request.URL.Path == "/rpc/v1/write" {
|
||||
if resp.Request.URL.Path == "/rpc/v1/write" {
|
||||
return false, err
|
||||
}
|
||||
// Check the response code. We retry on 500-range responses
|
||||
|
|
Loading…
Reference in a new issue