globalPriorityQueue definition END. isPreloadingBatch will check if a given batchID falling into the preloading zone. batchID is daysSinceEpoch value.
(batchID, preloadingDays int)
| 615 | // zone. |
| 616 | // batchID is daysSinceEpoch value. |
| 617 | func isPreloadingBatch(batchID, preloadingDays int) bool { |
| 618 | if int(utils.Now().Unix()/86400)-batchID < preloadingDays { |
| 619 | return true |
| 620 | } |
| 621 | return false |
| 622 | } |
no test coverage detected