Changed the iterations
This commit is contained in:
parent
bb8104b624
commit
d6205eb4ca
|
@ -95,8 +95,10 @@ func (db *GoLevelDB) Iterator() Iterator {
|
|||
}
|
||||
|
||||
func (db *GoLevelDB) Next(iter Iterator) ([]byte, []byte) {
|
||||
iter.Next()
|
||||
return iter.Key(), iter.Value()
|
||||
if iter.Next() {
|
||||
return iter.Key(), iter.Value()
|
||||
}
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (db *GoLevelDB) NewBatch() Batch {
|
||||
|
|
Loading…
Reference in New Issue