Skip to content

Commit

Permalink
uniformity
Browse files Browse the repository at this point in the history
  • Loading branch information
jianoaix committed Jan 22, 2024
1 parent 82abd32 commit 12941ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,9 +324,10 @@ 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)
n.Logger.Debug("Store batch took", "duration:", time.Duration(result.latency*float64(time.Second)).Milliseconds())

}

// Sign batch header hash if all validation checks pass and data items are written to database.
Expand Down

0 comments on commit 12941ba

Please sign in to comment.