lib/mongo/operation/find/command.rb in mongo-2.12.4 vs lib/mongo/operation/find/command.rb in mongo-2.13.0.beta1
- old
+ new
@@ -1,6 +1,6 @@
-# Copyright (C) 2018-2019 MongoDB, Inc.
+# Copyright (C) 2018-2020 MongoDB Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
@@ -28,11 +28,11 @@
include ReadPreferenceSupported
include PolymorphicResult
private
- def message(server)
- Protocol::Query.new(db_name, Database::COMMAND, command(server), options(server))
+ def message(connection)
+ Protocol::Query.new(db_name, Database::COMMAND, command(connection), options(connection))
end
end
end
end
end