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
|
|
@ -106,10 +106,11 @@ func (it *Iterator) Clone() graph.Iterator {
|
|||
return out
|
||||
}
|
||||
|
||||
func (it *Iterator) Close() {
|
||||
func (it *Iterator) Close() error {
|
||||
it.result = nil
|
||||
it.buffer = nil
|
||||
it.done = true
|
||||
return nil
|
||||
}
|
||||
|
||||
func (it *Iterator) isLiveValue(val []byte) bool {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue