Skip to content

Commit cbf8ff2

Browse files
committed
fix comments
1 parent 76c33da commit cbf8ff2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

iterator.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func (it *ScanIterator) Next() bool {
4747
}
4848

4949
for {
50-
// Return if there is more data to fetch.
50+
// Return if there is no more data to fetch.
5151
if it.ScanCmd.cursor == 0 {
5252
return false
5353
}
@@ -65,6 +65,8 @@ func (it *ScanIterator) Next() bool {
6565
}
6666

6767
it.pos = 1
68+
69+
// Redis can occasionally return empty page
6870
if len(it.ScanCmd.page) > 0 {
6971
return true
7072
}

0 commit comments

Comments
 (0)