Fix Err fallout for graph/leveldb iterators
This commit is contained in:
parent
9cdeb519d7
commit
5efd90a651
2 changed files with 8 additions and 0 deletions
|
|
@ -119,6 +119,10 @@ func (it *AllIterator) Next() bool {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (it *AllIterator) Err() error {
|
||||||
|
return it.iter.Error()
|
||||||
|
}
|
||||||
|
|
||||||
func (it *AllIterator) ResultTree() *graph.ResultTree {
|
func (it *AllIterator) ResultTree() *graph.ResultTree {
|
||||||
return graph.NewResultTree(it.Result())
|
return graph.NewResultTree(it.Result())
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -154,6 +154,10 @@ func (it *Iterator) Next() bool {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (it *Iterator) Err() error {
|
||||||
|
return it.iter.Error()
|
||||||
|
}
|
||||||
|
|
||||||
func (it *Iterator) ResultTree() *graph.ResultTree {
|
func (it *Iterator) ResultTree() *graph.ResultTree {
|
||||||
return graph.NewResultTree(it.Result())
|
return graph.NewResultTree(it.Result())
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue