fix comments

This commit is contained in:
vkd 2016-09-08 16:40:45 +03:00
parent 76c33da3ee
commit cbf8ff22f5
1 changed files with 3 additions and 1 deletions

View File

@ -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
}