Skip to content

Commit

Permalink
Clear dns multiple times after update
Browse files Browse the repository at this point in the history
  • Loading branch information
zachhuff386 committed Jan 6, 2017
1 parent a5e8b4b commit aea94e2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions service/watch/watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,10 @@ func dnsWatch() {

utils.ClearDNSCache()
go func() {
time.Sleep(1 * time.Second)
utils.ClearDNSCache()
for i := 0; i < 3; i++ {
time.Sleep(1 * time.Second)
utils.ClearDNSCache()
}
}()

restartLock.Unlock()
Expand Down

0 comments on commit aea94e2

Please sign in to comment.