Skip to content

Commit

Permalink
Merge pull request #155 from ColmHally/master
Browse files Browse the repository at this point in the history
Use given `connectTimeout` for sentinel connections
  • Loading branch information
luin committed Sep 24, 2015
2 parents 6ff9c3e + bbfbd8c commit cef4cce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/connectors/sentinel_connector.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ SentinelConnector.prototype.resolve = function (endpoint, callback) {
host: endpoint.host,
retryStrategy: null,
enableReadyCheck: false,
connectTimeout: 2000
connectTimeout: this.options.connectTimeout
});

if (this.options.role === 'slave') {
Expand Down

0 comments on commit cef4cce

Please sign in to comment.