Skip to content

Commit

Permalink
Update muxdb/engine/leveldb.go
Browse files Browse the repository at this point in the history
Co-authored-by: YeahNotSewerSide <47860375+YeahNotSewerSide@users.noreply.github.com>
  • Loading branch information
freemanzMrojo and YeahNotSewerSide authored Jan 20, 2025
1 parent 6365120 commit 27a258b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions muxdb/engine/leveldb.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ func (ldb *levelEngine) Bulk() kv.Bulk {
if err := ldb.db.Write(batch, &writeOpt); err != nil {
return err
}
metricBatchWriteBytes().Set(int64(batchBytesNo))
batchWriteElapsed := mclock.Now() - startTime
batchWriteElapsed := mclock.Now() - startTime
metricBatchWriteBytes().Set(int64(batchBytesNo))
metricBatchWriteDuration().Observe(time.Duration(batchWriteElapsed).Milliseconds())
}
ldb.batchPool.Put(batch)
Expand Down

0 comments on commit 27a258b

Please sign in to comment.