Skip to content

Commit

Permalink
fix outputer
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangchiqing committed Jun 8, 2024
1 parent d5ef271 commit 1018f74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/util/cmd/find-trie-root/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,14 +166,14 @@ func searchRootHashInSegments(
}

func copyWAL(dir, outputDir string, segment int, expectedRoot ledger.RootHash) error {
writer, err := prometheusWAL.NewSize(log.Logger, prometheus.DefaultRegisterer, outputDir, wal.SegmentSize, false)
writer, err := prometheusWAL.NewSize(log.Logger, nil, outputDir, wal.SegmentSize, false)
if err != nil {
return fmt.Errorf("cannot create writer WAL: %w", err)
}

defer writer.Close()

w, err := prometheusWAL.NewSize(log.Logger, prometheus.DefaultRegisterer, dir, wal.SegmentSize, false)
w, err := prometheusWAL.NewSize(log.Logger, nil, dir, wal.SegmentSize, false)
if err != nil {
return fmt.Errorf("cannot create WAL: %w", err)
}
Expand Down

0 comments on commit 1018f74

Please sign in to comment.