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

@ -174,10 +174,11 @@ func (it *AllIterator) Contains(v graph.Value) bool {
return true
}
func (it *AllIterator) Close() {
func (it *AllIterator) Close() error {
it.result = nil
it.buffer = nil
it.done = true
return nil
}
func (it *AllIterator) Size() (int64, bool) {