Fix token bug

This commit is contained in:
Ben Toogood
2020-05-14 13:30:21 +01:00
parent 1b18730d54
commit c220686c29
2 changed files with 7 additions and 6 deletions

View File

@@ -315,9 +315,9 @@ func NewAuth(opts ...auth.Option) auth.Auth {
ruleTimer := time.NewTicker(time.Second * 30)
for {
<-ruleTimer.C
time.Sleep(jitter.Do(time.Second * 5))
service.loadRules()
<-ruleTimer.C
}
}()