Merge pull request #240 from ericchiang/reduce_backoff

cmd: reduce backoff max when worker is waiting for connectors
This commit is contained in:
Eric Chiang 2015-12-22 10:57:22 -08:00
commit 1675acf21b

View file

@ -169,7 +169,7 @@ func main() {
if len(cfgs) > 0 && err == nil {
break
}
sleep = ptime.ExpBackoff(sleep, time.Minute)
sleep = ptime.ExpBackoff(sleep, 8*time.Second)
if err != nil {
log.Errorf("Unable to load connectors, retrying in %v: %v", sleep, err)
} else {