[Groonga-commit] droonga/express-droonga at 475d6bb [master] Use given host name prior to the host specified by an environment variable DROONGA_ENGINE_HOST.

Zurück zum Archiv-Index

YUKI Hiroshi null+****@clear*****
Fri Oct 17 16:50:05 JST 2014


YUKI Hiroshi	2014-10-17 16:50:05 +0900 (Fri, 17 Oct 2014)

  New Revision: 475d6bbf99e9d1f7b2186006d5dc8f2148af73eb
  https://github.com/droonga/express-droonga/commit/475d6bbf99e9d1f7b2186006d5dc8f2148af73eb

  Message:
    Use given host name prior to the host specified by an environment variable DROONGA_ENGINE_HOST.
    
    To support multiple connections, the global environment variable have to be ignroed.

  Modified files:
    lib/droonga-protocol/connection.js

  Modified: lib/droonga-protocol/connection.js (+2 -2)
===================================================================
--- lib/droonga-protocol/connection.js    2014-10-17 16:48:16 +0900 (23e100b)
+++ lib/droonga-protocol/connection.js    2014-10-17 16:50:05 +0900 (3b67a74)
@@ -55,8 +55,8 @@ Connection.prototype._init = function() {
   this.defaultDataset = process.env.DROONGA_ENGINE_DEFAULT_DATASET ||
                           this._params.defaultDataset ||
                             '';
-  this.hostName = process.env.DROONGA_ENGINE_HOST ||
-                          this._params.hostName ||
+  this.hostName = this._params.hostName ||
+                          process.env.DROONGA_ENGINE_HOST ||
                             DEFAULT_FLUENT_HOST_NAME;
   this.port = process.env.DROONGA_ENGINE_PORT ||
                           this._params.port ||
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Zurück zum Archiv-Index