Skip to content

Commit 202fb62

Browse files
committed
2220
1 parent 49270ba commit 202fb62

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/mongo/cursor.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,10 @@ def get_more_operation
378378
# TODO should to_return be calculated in the operation layer?
379379
batch_size: batch_size,
380380
to_return: to_return,
381-
max_time_ms: if view.max_await_time_ms && view.options[:await_data]
381+
max_time_ms: if view.respond_to?(:max_await_time_ms) &&
382+
view.max_await_time_ms &&
383+
view.options[:await_data]
384+
then
382385
view.max_await_time_ms
383386
else
384387
nil

0 commit comments

Comments
 (0)