chainntfs: fix the Pop method on confirmationHeap
This commit is contained in:
parent
25c1b7a491
commit
1c59dfc75c
@ -44,7 +44,7 @@ func (c *confirmationHeap) Push(x interface{}) {
|
||||
func (c *confirmationHeap) Pop() interface{} {
|
||||
n := len(c.items)
|
||||
x := c.items[n-1]
|
||||
c.items[n-1] = nil
|
||||
c.items = c.items[0 : n-1]
|
||||
c.items[n] = nil
|
||||
return x
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user