Skip to content

Commit

Permalink
memstore: use correct size for all iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
dennwc committed Dec 23, 2017
1 parent b0f92e1 commit fe0248e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graph/memstore/all_iterator.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func (it *AllIterator) NextPath(ctx context.Context) bool { return false }

func (it *AllIterator) Size() (int64, bool) {
// TODO: use maxid?
return int64(len(it.qs.all)), true
return int64(len(it.all)), true
}
func (it *AllIterator) Stats() graph.IteratorStats {
st := graph.IteratorStats{NextCost: 1, ContainsCost: 1}
Expand Down

0 comments on commit fe0248e

Please sign in to comment.