mirror of
https://github.com/rtr7/router7.git
synced 2024-05-06 15:54:52 +00:00
avoid flooding the network upon errors
This commit is contained in:
@ -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())
|
||||
|
Reference in New Issue
Block a user