Skip to content

Commit 4b45bc5

Browse files
committed
Allow average round trip time to be nil
1 parent 249134b commit 4b45bc5

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/mongo/server/description.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,7 @@ class Description
189189
# call took to complete.
190190
#
191191
# @since 2.0.0
192-
def initialize(address, config = {}, average_round_trip_time = 0)
193-
if average_round_trip_time.nil?
194-
raise ArgumentError, 'Average round trip time cannot be nil'
195-
end
192+
def initialize(address, config = {}, average_round_trip_time = nil)
196193
@address = address
197194
@config = config
198195
unless unknown?

0 commit comments

Comments
 (0)