refactor: some minor changes.
This commit is contained in:
parent
529e34d2ae
commit
b9d8eff994
9 changed files with 24 additions and 76 deletions
|
@ -125,7 +125,7 @@ type retryResponseWriterWithoutCloseNotify struct {
|
|||
}
|
||||
|
||||
func (rr *retryResponseWriterWithoutCloseNotify) ShouldRetry() bool {
|
||||
return *rr.netErrorOccured == true && !rr.attemptsExhausted
|
||||
return *rr.netErrorOccured && !rr.attemptsExhausted
|
||||
}
|
||||
|
||||
func (rr *retryResponseWriterWithoutCloseNotify) Header() http.Header {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue