time duration should be nano seconds, gccgo treats it as zero
Signed-off-by: Srini Brahmaroutu <srbrahma@us.ibm.com>
This commit is contained in:
parent
965e905b41
commit
b220cdfe3b
1 changed files with 1 additions and 1 deletions
|
@ -102,5 +102,5 @@ func backoff(retries int) time.Duration {
|
||||||
}
|
}
|
||||||
|
|
||||||
func abort(start time.Time, timeOff time.Duration) bool {
|
func abort(start time.Time, timeOff time.Duration) bool {
|
||||||
return timeOff+time.Since(start) > time.Duration(defaultTimeOut)*time.Second
|
return timeOff+time.Since(start) >= time.Duration(defaultTimeOut)*time.Second
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue