Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
p0mvn committed Mar 25, 2022
1 parent d0081b6 commit 948de1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pruning/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ func (m *Manager) flushPruningHeights(batch dbm.Batch) {
func (m *Manager) flushPruningSnapshotHeights(batch dbm.Batch) {
m.mx.Lock()
defer m.mx.Unlock()
bz := make([]byte, 0, m.pruneSnapshotHeights.Len())
bz := make([]byte, 0, m.pruneSnapshotHeights.Len() * uint64Size)
for e := m.pruneSnapshotHeights.Front(); e != nil; e = e.Next() {
buf := make([]byte, uint64Size)
binary.BigEndian.PutUint64(buf, uint64(e.Value.(int64)))
Expand Down

0 comments on commit 948de1b

Please sign in to comment.