@@ -101,7 +101,7 @@ class MongoClient
101101 # logging negatively impacts performance; therefore, it should not be used for high-performance apps.
102102 # @option opts [Integer] :pool_size (1) The maximum number of socket self.connections allowed per
103103 # connection pool. Note: this setting is relevant only for multi-threaded applications.
104- # @option opts [Float] :timeout (5.0) When all of the self.connections a pool are checked out,
104+ # @option opts [Float] :pool_timeout (5.0) When all of the self.connections a pool are checked out,
105105 # this is the number of seconds to wait for a new connection to be released before throwing an exception.
106106 # Note: this setting is relevant only for multi-threaded applications.
107107 # @option opts [Float] :op_timeout (nil) The number of seconds to wait for a read operation to time out.
@@ -116,7 +116,7 @@ class MongoClient
116116 # MongoClient.new("localhost")
117117 #
118118 # @example localhost, 3000, max 5 self.connections, with max 5 seconds of wait time.
119- # MongoClient.new("localhost", 3000, :pool_size => 5, :timeout => 5)
119+ # MongoClient.new("localhost", 3000, :pool_size => 5, :pool_timeout => 5)
120120 #
121121 # @example localhost, 3000, where this node may be a slave
122122 # MongoClient.new("localhost", 3000, :slave_ok => true)
0 commit comments