Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jianoaix committed Jan 22, 2024
1 parent 24f4e55 commit 82abd32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit 82abd32

Please sign in to comment.