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
1 changed files with 1 additions and 1 deletions

View File

@ -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
}