Skip to content

Commit

Permalink
fix/cache: remove duplicate callback calls in enumerateNodesWithCB,
Browse files Browse the repository at this point in the history
- resolve: syndtr#434
  • Loading branch information
ever0de committed Nov 29, 2023
1 parent 126854a commit cacd152
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion leveldb/cache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,8 @@ func (h *mHead) enumerateNodesWithCB(f func([]*Node)) {
b.mu.Lock()
nodes = append(nodes, b.nodes...)
b.mu.Unlock()
f(nodes)
}
f(nodes)
}

func (h *mHead) enumerateNodesByNS(ns uint64) []*Node {
Expand Down

0 comments on commit cacd152

Please sign in to comment.