lastEnnoblementAt should subtract from time.Now() 1 minute, not 60

This commit is contained in:
Dawid Wysokiński 2020-06-27 18:50:48 +02:00 committed by Kichiyaki
parent f63daf39d7
commit 1067f8b39d
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ func (h *handler) loadEnnoblements(servers []string) map[string]ennoblements {
lastEnnoblementAt, ok := h.lastEnnoblementAt[w]
if !ok {
lastEnnoblementAt = time.Now().Add(-60 * time.Minute)
lastEnnoblementAt = time.Now().Add(-1 * time.Minute)
}
m[w] = filterEnnoblements(es, lastEnnoblementAt)