From dc62d4f32c77c613c546b99517b98479b6f9b296 Mon Sep 17 00:00:00 2001 From: kortschak Date: Sat, 28 Jun 2014 21:46:02 +0930 Subject: [PATCH] Canonicalise memstore receiver names --- graph/memstore/all_iterator.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/graph/memstore/all_iterator.go b/graph/memstore/all_iterator.go index 1d64145..8211e06 100644 --- a/graph/memstore/all_iterator.go +++ b/graph/memstore/all_iterator.go @@ -30,16 +30,16 @@ func NewMemstoreAllIterator(ts *TripleStore) *AllIterator { return &out } -func (memall *AllIterator) Next() (graph.TSVal, bool) { - next, out := memall.Int64AllIterator.Next() +func (it *AllIterator) Next() (graph.TSVal, bool) { + next, out := it.Int64AllIterator.Next() if !out { return next, out } i64 := next.(int64) - _, ok := memall.ts.revIdMap[i64] + _, ok := it.ts.revIdMap[i64] if !ok { - return memall.Next() + return it.Next() } - memall.Last = next + it.Last = next return next, out }