YUKI Hiroshi
null+****@clear*****
Wed Apr 29 01:38:16 JST 2015
YUKI Hiroshi 2015-04-29 01:38:16 +0900 (Wed, 29 Apr 2015) New Revision: 642eeeb31a930f9b0d8711f9a23c4463f7c78374 https://github.com/droonga/express-droonga/commit/642eeeb31a930f9b0d8711f9a23c4463f7c78374 Message: Specify "targetRole" to the envelope (by default "service-provider") Modified files: lib/droonga-protocol/connection.js Modified: lib/droonga-protocol/connection.js (+2 -0) =================================================================== --- lib/droonga-protocol/connection.js 2015-04-24 00:54:39 +0900 (39a6a55) +++ lib/droonga-protocol/connection.js 2015-04-29 01:38:16 +0900 (817c7ee) @@ -62,6 +62,7 @@ Connection.prototype._init = function() { this.defaultDataset = process.env.DROONGA_ENGINE_DEFAULT_DATASET || this._params.defaultDataset || ''; + this.defaultTargetRole = 'service-provider'; this.defaultTimeout = this._params.defaultTimeout || DEFAULT_RESPONSE_TIMEOUT_SECONDS; this.hostName = this._params.hostName || @@ -234,6 +235,7 @@ Connection.prototype.emitMessage = function(type, body, callback, options) { date: getCurrentTime(), dataset: options.dataset || this.defaultDataset, type: type, + targetRole: options.targetRole || this.defaultTargetRole, body: body }; if (typeof envelope.timeout != 'number') { -------------- next part -------------- HTML����������������������������...Download