mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-23 11:33:09 +00:00
Update mongo.lua (#1884)
This commit is contained in:
@@ -763,7 +763,7 @@ function mongo_cursor:hasNext()
|
||||
self.__cursor = cursor.id
|
||||
|
||||
local limit = self.__limit
|
||||
if cursor.id > 0 and limit > 0 then
|
||||
if limit and limit > 0 and cursor.id > 0 then
|
||||
limit = limit - #self.__document
|
||||
if limit <= 0 then
|
||||
-- reach limit
|
||||
|
||||
Reference in New Issue
Block a user