Skip to content

Commit

Permalink
Stop creating srv monitor in topology instances
Browse files Browse the repository at this point in the history
  • Loading branch information
p committed Sep 6, 2019
1 parent f44b82d commit 4c4da1d
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions lib/mongo/cluster/topology/sharded.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,6 @@ class Sharded < Base
# @since 2.0.0
NAME = 'Sharded'.freeze

def initialize(options, monitoring, cluster)
super(options, monitoring, cluster)

unless options[:srv_records].nil?
@srv_monitor = SRV::Monitor.new(cluster, SRV::Resolver.new, options[:srv_records], options)
@srv_monitor.start_monitor!
end
end

# Get the display name.
#
# @example Get the display name.
Expand Down

0 comments on commit 4c4da1d

Please sign in to comment.