lastEnnoblementAt should subtract from time.Now() 1 minute, not 60
This commit is contained in:
parent
f63daf39d7
commit
1067f8b39d
|
@ -47,7 +47,7 @@ func (h *handler) loadEnnoblements(servers []string) map[string]ennoblements {
|
||||||
|
|
||||||
lastEnnoblementAt, ok := h.lastEnnoblementAt[w]
|
lastEnnoblementAt, ok := h.lastEnnoblementAt[w]
|
||||||
if !ok {
|
if !ok {
|
||||||
lastEnnoblementAt = time.Now().Add(-60 * time.Minute)
|
lastEnnoblementAt = time.Now().Add(-1 * time.Minute)
|
||||||
}
|
}
|
||||||
|
|
||||||
m[w] = filterEnnoblements(es, lastEnnoblementAt)
|
m[w] = filterEnnoblements(es, lastEnnoblementAt)
|
||||||
|
|
Reference in New Issue