From d018164b377689a00917e13b9d2a6b4756a6eace Mon Sep 17 00:00:00 2001 From: Martin Boehm Date: Tue, 12 Jun 2018 21:24:18 +0200 Subject: [PATCH] Fix typo in comment --- blockbook.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blockbook.go b/blockbook.go index 4743f457..9841c042 100644 --- a/blockbook.go +++ b/blockbook.go @@ -422,7 +422,7 @@ func storeInternalStateLoop() { }() var computeRunning bool lastCompute := time.Now() - // randomize the duration between ComputeInternalStateColumnStats to avoid peeks after reboot of machine with multiple blockbooks + // randomize the duration between ComputeInternalStateColumnStats to avoid peaks after reboot of machine with multiple blockbooks computePeriod := 9*time.Hour + time.Duration(rand.Float64()*float64((2*time.Hour).Nanoseconds())) glog.Info("storeInternalStateLoop starting with internal state compute period ", computePeriod) tickAndDebounce(storeInternalStatePeriodMs*time.Millisecond, (storeInternalStatePeriodMs-1)*time.Millisecond, chanStoreInternalState, func() {