Make Close() method on Iterators return an error
This commit is contained in:
parent
5c9979ec8b
commit
1b6395ed0a
19 changed files with 89 additions and 33 deletions
|
|
@ -145,11 +145,12 @@ func (it *AllIterator) Contains(v graph.Value) bool {
|
|||
return true
|
||||
}
|
||||
|
||||
func (it *AllIterator) Close() {
|
||||
func (it *AllIterator) Close() error {
|
||||
if it.open {
|
||||
it.iter.Release()
|
||||
it.open = false
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (it *AllIterator) Size() (int64, bool) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue