Skip to content

Commit 0bb9fbf

Browse files
committed
triedb/pathdb: fix compile
1 parent ef0babc commit 0bb9fbf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

triedb/pathdb/history_indexer.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -618,14 +618,14 @@ func (i *indexIniter) recover(lastID uint64) {
618618
lastID = newLastID
619619
signal.result <- nil
620620
i.last.Store(newLastID)
621-
log.Debug("Updated history index flag", "last", lastID)
621+
i.log.Debug("Updated history index flag", "last", lastID)
622622

623623
// Terminate the recovery routine once the histories are fully aligned
624624
// with the index data, indicating that index initialization is complete.
625-
metadata := loadIndexMetadata(i.disk)
625+
metadata := loadIndexMetadata(i.disk, i.typ)
626626
if metadata != nil && metadata.Last == lastID {
627627
close(i.done)
628-
log.Info("History indexer is recovered", "last", lastID)
628+
i.log.Info("History indexer is recovered", "last", lastID)
629629
return
630630
}
631631

0 commit comments

Comments
 (0)