Skip to content

result2 in callback function? #99

Open
@dest31337

Description

Trying to use node-cassandra-cql in async flow control methods which add for next function argument "callback" (and hides first argument "error"):
async.waterfall([
function(callback) {
client.executeAsPrepared(select,
[param],
callback
);
},
function(result, callback) {
...
}], ...);
I got error because in Client.prototype._executeOnConnection callback called with 2 result args:
callback(err, result1, result2);
Why? Refer to documentation:
"Callback should take two arguments err and result."

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions