Fix Err fallout for graph/leveldb iterators

This commit is contained in:
Andrew Dunham 2015-04-14 19:11:23 -07:00
parent 9cdeb519d7
commit 5efd90a651
2 changed files with 8 additions and 0 deletions

View file

@ -119,6 +119,10 @@ func (it *AllIterator) Next() bool {
return true
}
func (it *AllIterator) Err() error {
return it.iter.Error()
}
func (it *AllIterator) ResultTree() *graph.ResultTree {
return graph.NewResultTree(it.Result())
}

View file

@ -154,6 +154,10 @@ func (it *Iterator) Next() bool {
return false
}
func (it *Iterator) Err() error {
return it.iter.Error()
}
func (it *Iterator) ResultTree() *graph.ResultTree {
return graph.NewResultTree(it.Result())
}