Skip to content
This repository was archived by the owner on May 14, 2024. It is now read-only.

Commit c861135

Browse files
author
Martin Cizek
committed
Don't randomize first server
1 parent 85824f8 commit c861135

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/client/client.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,7 @@ function Client (options) {
111111

112112
var self = this
113113
this.urls = options.url ? [].concat(options.url).map(url.parse) : []
114-
// select random server at the start
115-
this._nextServer = Math.floor(Math.random() * this.urls.length)
114+
this._nextServer = 0
116115
// updated in connectSocket() after each connect
117116
this.host = undefined
118117
this.port = undefined

0 commit comments

Comments
 (0)