Fix time window recalc
This commit is contained in:
@@ -24,10 +24,8 @@ func (job *RecalculateTimeWindowHighSharesJob) Run() error {
|
||||
defer ticker.Stop()
|
||||
|
||||
for {
|
||||
select {
|
||||
case <-ticker.C:
|
||||
job.recalculateTimeWindowHighShares()
|
||||
}
|
||||
<-ticker.C
|
||||
job.recalculateTimeWindowHighShares()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user