From fe0248efcc2655eace2e90ad32e6eefee2bef32c Mon Sep 17 00:00:00 2001 From: Denys Smirnov Date: Sat, 23 Dec 2017 03:21:26 +0200 Subject: [PATCH] memstore: use correct size for all iterator --- graph/memstore/all_iterator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graph/memstore/all_iterator.go b/graph/memstore/all_iterator.go index be5e1e47e..6b659f748 100644 --- a/graph/memstore/all_iterator.go +++ b/graph/memstore/all_iterator.go @@ -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}