mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 08:13:31 +02:00
The srv resolver should be easier to use now.
This commit is contained in:
@@ -13,13 +13,12 @@ function connect() {
|
||||
var options = {
|
||||
// These environment variables are exposed when we --link to a
|
||||
// RethinkDB container.
|
||||
host: process.env.RETHINKDB_PORT_28015_TCP_ADDR || '127.0.0.1'
|
||||
, port: process.env.RETHINKDB_PORT_28015_TCP_PORT || 28015
|
||||
url: process.env.RETHINKDB_PORT_28015_TCP || 'tcp://127.0.0.1:28015'
|
||||
, db: process.env.RETHINKDB_ENV_DATABASE || 'stf'
|
||||
, authKey: process.env.RETHINKDB_ENV_AUTHKEY
|
||||
}
|
||||
|
||||
return srv.resolve(options.host, options.port)
|
||||
return srv.resolve(options.url)
|
||||
.then(function(records) {
|
||||
function next() {
|
||||
var record = records.shift()
|
||||
|
||||
Reference in New Issue
Block a user