avoid flooding the network upon errors
This commit is contained in:
parent
c28d816805
commit
cd019e1d7d
@ -37,6 +37,7 @@ func logic() error {
|
||||
for c.ObtainOrRenew() {
|
||||
if err := c.Err(); err != nil {
|
||||
log.Printf("Temporary error: %v", err)
|
||||
time.Sleep(1 * time.Second)
|
||||
continue
|
||||
}
|
||||
log.Printf("lease: %+v", c.Config())
|
||||
|
Loading…
x
Reference in New Issue
Block a user