bug fix for skip
This commit is contained in:
parent
8a593bd360
commit
8994b2aabd
|
@ -137,7 +137,7 @@ func (it *Iterator) Next() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (it *Iterator) Skip(offset int64) {
|
func (it *Iterator) Skip(offset int64) {
|
||||||
for i := 0; i < offset; i++ {
|
for i := int64(0); i < offset; i++ {
|
||||||
if it.Valid() {
|
if it.Valid() {
|
||||||
it.Next()
|
it.Next()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue