Fixing invalid usage of getProtobufServiceAttrs() function.

getProtobufServiceAttrs(service, options) must be called with 2 arguments.
This commit is contained in:
Dmitry Kovalev 2016-04-21 23:32:30 -07:00
parent 0c82e79880
commit 849fcbadcd

View File

@ -815,8 +815,7 @@ exports.waitForClientReady = function(client, deadline, callback) {
* @return {function(string, Object)} New client constructor
*/
exports.makeProtobufClientConstructor = function(service, options) {
var method_attrs = common.getProtobufServiceAttrs(service, service.name,
options);
var method_attrs = common.getProtobufServiceAttrs(service, options);
var deprecatedArgumentOrder = false;
if (options) {
deprecatedArgumentOrder = options.deprecatedArgumentOrder;