chore(rpc): remove redundant check

This commit is contained in:
Bo-Yi Wu 2020-02-09 21:38:15 +08:00
parent 93e8767f9c
commit de322e2bc9

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