From 1018f74c9aa376d28d2d5d831305dedeba470503 Mon Sep 17 00:00:00 2001 From: "Leo Zhang (zhangchiqing)" Date: Fri, 7 Jun 2024 22:18:34 -0700 Subject: [PATCH] fix outputer --- cmd/util/cmd/find-trie-root/cmd.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/util/cmd/find-trie-root/cmd.go b/cmd/util/cmd/find-trie-root/cmd.go index 52c109658f4..1eb759b6d91 100644 --- a/cmd/util/cmd/find-trie-root/cmd.go +++ b/cmd/util/cmd/find-trie-root/cmd.go @@ -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) }