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
|
|
@ -114,7 +114,9 @@ func (it *Null) Size() (int64, bool) {
|
|||
|
||||
func (it *Null) Reset() {}
|
||||
|
||||
func (it *Null) Close() {}
|
||||
func (it *Null) Close() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// A null iterator costs nothing. Use it!
|
||||
func (it *Null) Stats() graph.IteratorStats {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue