change backoff to pointer receiver

This commit is contained in:
iamqizhao
2016-04-18 12:05:24 -07:00
parent 867e23d72a
commit 75407c0f82

View File

@ -58,7 +58,7 @@ func (bc *BackoffConfig) setDefaults() {
}
}
func (bc BackoffConfig) backoff(retries int) (t time.Duration) {
func (bc *BackoffConfig) backoff(retries int) (t time.Duration) {
if retries == 0 {
return bc.baseDelay
}