Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Commit

Permalink
Moped::Node#connect does not automatically refresh
Browse files Browse the repository at this point in the history
This solves the problem where, on first connection to a node, its
information would be refreshed twice.

[see: mongoid/mongoid#2133]
  • Loading branch information
bernerdschaefer committed Jun 22, 2012
1 parent 97309b8 commit 032712f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/moped/node.rb
Expand Up @@ -464,8 +464,6 @@ def down!
def connect
connection.connect ip_address, port, timeout
@down_at = nil

refresh
rescue Timeout::Error
raise Errors::ConnectionFailure, "Timed out connection to Mongo on #{address}"
rescue Errno::ECONNREFUSED
Expand Down

0 comments on commit 032712f

Please sign in to comment.