[Groonga-commit] groonga/express-kotoumi [master] Fix mismatched hostName/receiveHostName relations

Back to archive index

YUKI Hiroshi null+****@clear*****
Mon Jan 21 19:11:06 JST 2013


YUKI Hiroshi	2013-01-21 19:11:06 +0900 (Mon, 21 Jan 2013)

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

  Log:
    Fix mismatched hostName/receiveHostName relations

  Modified files:
    lib/backend-adaptor.js

  Modified: lib/backend-adaptor.js (+8 -8)
===================================================================
--- lib/backend-adaptor.js    2013-01-21 19:08:10 +0900 (cec4014)
+++ lib/backend-adaptor.js    2013-01-21 19:11:06 +0900 (60915aa)
@@ -32,11 +32,11 @@ var EventEmitter = require('events').EventEmitter;
 var socketIo = require('socket.io');
 var fluent = require('fluent-logger');
 
-var DEFAULT_FLUENT_TAG  = 'groonga';
-var DEFAULT_FLUENT_HOST = 'localhost';
-var DEFAULT_FLUENT_PORT = 24224;
-var DEFAULT_HOST_NAME   = 'localhost';
-var DEFAULT_LISTEN_PORT = 10030;
+var DEFAULT_FLUENT_TAG        = 'groonga';
+var DEFAULT_FLUENT_HOST_NAME  = 'localhost';
+var DEFAULT_FLUENT_PORT       = 24224;
+var DEFAULT_RECEIVE_HOST_NAME = 'localhost';
+var DEFAULT_RECEIVE_PORT      = 10030;
 
 function Connection(params) {
   this._params = params || {};
@@ -55,14 +55,14 @@ Connection.prototype._initSender = function() {
   this._sender = (
     this._params.sender ||
     fluent.createFluentSender(this._params.tag || DEFAULT_FLUENT_TAG,
-                              { host: this._params.host || DEFAULT_FLUENT_HOST,
+                              { host: this._params.hostName || DEFAULT_FLUENT_HOST_NAME,
                                 port: this._params.port || DEFAULT_FLUENT_PORT })
   );
 };
 
 Connection.prototype._initReceiver = function() {
-  this.hostName = this._params.hostName || DEFAULT_HOST_NAME;
-  this.receivePort = this._params.receivePort || DEFAULT_LISTEN_PORT;
+  this.receiveHostName = this._params.receiveHostName || DEFAULT_RECEIVE_HOST_NAME;
+  this.receivePort = this._params.receivePort || DEFAULT_RECEIVE_PORT;
 
   var receiver = this._params.receiver;
   if (!receiver) {
-------------- next part --------------
HTML����������������������������...
Download 



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