Make Close() method on Iterators return an error

This commit is contained in:
Andrew Dunham 2015-04-14 20:17:31 -07:00
parent 5c9979ec8b
commit 1b6395ed0a
19 changed files with 89 additions and 33 deletions

View file

@ -105,7 +105,9 @@ func (it *Iterator) Clone() graph.Iterator {
return m
}
func (it *Iterator) Close() {}
func (it *Iterator) Close() error {
return nil
}
func (it *Iterator) checkValid(index int64) bool {
return it.qs.log[index].DeletedBy == 0