Fix counting errors.
This commit is contained in:
@@ -25,7 +25,7 @@ func CronTask() {
|
||||
log.Errorf("Unable to get holidays (try %d/15): %s", errcnt, err)
|
||||
|
||||
switch errcnt {
|
||||
case 0, 1, 2:
|
||||
case 1, 2:
|
||||
timeout = 1 * time.Second
|
||||
|
||||
case 3, 4, 5:
|
||||
|
||||
Reference in New Issue
Block a user