mirror of
https://github.com/grassrootseconomics/cic-chain-events.git
synced 2024-11-22 07:46:46 +01:00
fix: janitor incorrect missing block report
This commit is contained in:
parent
6d6b5d0d9f
commit
7b334e8691
@ -97,7 +97,10 @@ func (j *Janitor) QueueMissingBlocks(ctx context.Context) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
j.logg.Info("janitor: missing blocks", "count", j.stats.GetHeadCursor()-lowerBound)
|
missingBlockCountReport := j.stats.GetHeadCursor() - lowerBound
|
||||||
|
if missingBlockCountReport > 10 {
|
||||||
|
j.logg.Info("janitor: missing blocks", "count")
|
||||||
|
}
|
||||||
|
|
||||||
rowsProcessed := 0
|
rowsProcessed := 0
|
||||||
for rows.Next() {
|
for rows.Next() {
|
||||||
|
Loading…
Reference in New Issue
Block a user