basho / riak-nodejs-client

The Riak client for Node.js.
Apache License 2.0
72 stars 29 forks source link

Issue with starting Client object [JIRA: CLIENTS-688] #118

Closed lukebakken closed 8 years ago

lukebakken commented 8 years ago

Issue with the 1.9.0 client when using new Riak.Client:

$ node --version
v4.1.0

$ ~/GitHub/riak/dev/dev1/bin/riak ping
pong

$ cat riak.js
var Riak = require('basho-riak-client');
var client = new Riak.Client([
    'localhost:10017',
]);

function client_shutdown() {
    client.shutdown(function (state) {
        if (state === Riak.Cluster.State.SHUTDOWN) {
            process.exit();
        }
    });
}

$ node riak.js
nodejs/node_modules/basho-riak-client/lib/core/riakcluster.js:107
                callback(err, rslts);