chainntfs: fix the Pop method on confirmationHeap

This commit is contained in:
Olaoluwa Osuntokun 2016-02-26 16:27:32 -08:00
parent 25c1b7a491
commit 1c59dfc75c

@ -44,7 +44,7 @@ func (c *confirmationHeap) Push(x interface{}) {
func (c *confirmationHeap) Pop() interface{} { func (c *confirmationHeap) Pop() interface{} {
n := len(c.items) n := len(c.items)
x := c.items[n-1] x := c.items[n-1]
c.items[n-1] = nil
c.items = c.items[0 : n-1] c.items = c.items[0 : n-1]
c.items[n] = nil
return x return x
} }