[Groonga-commit] groonga/express-kotoumi [master] Give full of envelope, to a callback function for a response

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Jan 10 18:41:15 JST 2013


YUKI Hiroshi	2013-01-10 18:41:15 +0900 (Thu, 10 Jan 2013)

  New Revision: 3df9fe1950d52d6b11693066af2e9462cd2d91a5
  https://github.com/groonga/express-kotoumi/commit/3df9fe1950d52d6b11693066af2e9462cd2d91a5

  Log:
    Give full of envelope, to a callback function for a response

  Modified files:
    lib/backend-adaptor.js

  Modified: lib/backend-adaptor.js (+3 -3)
===================================================================
--- lib/backend-adaptor.js    2013-01-10 18:30:46 +0900 (f81b01d)
+++ lib/backend-adaptor.js    2013-01-10 18:41:15 +0900 (585f6a3)
@@ -66,10 +66,10 @@ Connection.prototype._initReceiver = function() {
   this._receiver.set('log level', 1);
 };
 
-Connection.prototype._handleMessage = function(message) {
-  var replyTo = message['reply_to'];
+Connection.prototype._handleMessage = function(envelope) {
+  var replyTo = envelope['replyTo'];
   if (replyTo) {
-    this.emit('replyTo:' + replyTo, message.body);
+    this.emit('replyTo:' + replyTo, envelope);
   }
 };
 
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index