Merge pull request #2918 from appleboy/lint

chore(rpc): remove redundant check
This commit is contained in:
Thomas Boerger 2020-02-29 15:25:35 +01:00 committed by GitHub
commit 296471d489
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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