From 82abd325beb147bc7c6b6d7730a834886f0b3cc9 Mon Sep 17 00:00:00 2001 From: Jian Xiao Date: Mon, 22 Jan 2024 23:20:46 +0000 Subject: [PATCH] fix --- node/node.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/node.go b/node/node.go index 1522018a1..252df067a 100644 --- a/node/node.go +++ b/node/node.go @@ -297,7 +297,6 @@ func (n *Node) ProcessBatch(ctx context.Context, header *core.BatchHeader, blobs } return } - n.Logger.Debug("Store batch took", "duration:", time.Since(start)) storeChan <- storeResult{err: nil, keys: keys, latency: float64(time.Since(start).Milliseconds())} }(n) @@ -325,6 +324,7 @@ func (n *Node) ProcessBatch(ctx context.Context, header *core.BatchHeader, blobs return nil, err } if result.keys != nil { + n.Logger.Debug("Store batch took", "duration:", time.Duration(result.latency)) n.Metrics.AcceptBatches("stored", batchSize) n.Metrics.ObserveLatency("StoreChunks", "stored", result.latency) }