fixed bug in slice container seek

This commit is contained in:
Todd Gruben 2019-11-26 09:21:52 -06:00
parent 407c309640
commit ca0247e35b

View file

@ -212,7 +212,7 @@ func (sc *sliceContainers) Update(key uint64, fn func(*Container, bool) (*Contai
// don't expand the slice just to add a nil container, we
// could return that anyway
if write && nc != nil {
sc.insertAt(key, nc, -i-1)
sc.insertAt(key, nc, i)
}
}
}