From cbf8ff22f55038e0681e43be48c01b37847b507c Mon Sep 17 00:00:00 2001 From: vkd Date: Thu, 8 Sep 2016 16:40:45 +0300 Subject: [PATCH] fix comments --- iterator.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/iterator.go b/iterator.go index e8872fb..d48ad7b 100644 --- a/iterator.go +++ b/iterator.go @@ -47,7 +47,7 @@ func (it *ScanIterator) Next() bool { } for { - // Return if there is more data to fetch. + // Return if there is no more data to fetch. if it.ScanCmd.cursor == 0 { return false } @@ -65,6 +65,8 @@ func (it *ScanIterator) Next() bool { } it.pos = 1 + + // Redis can occasionally return empty page if len(it.ScanCmd.page) > 0 { return true }