YUKI Hiroshi
null+****@clear*****
Wed Nov 5 13:21:06 JST 2014
YUKI Hiroshi 2014-11-05 13:21:06 +0900 (Wed, 05 Nov 2014) New Revision: 66a03013203aae23ad36a21998a1a8afaa43651d https://github.com/droonga/droonga-http-server/commit/66a03013203aae23ad36a21998a1a8afaa43651d Message: Use utility methods to manage synchronization of hostNames from the cluster Modified files: bin/droonga-http-server Modified: bin/droonga-http-server (+2 -5) =================================================================== --- bin/droonga-http-server 2014-11-05 13:14:23 +0900 (b6f1a4e) +++ bin/droonga-http-server 2014-11-05 13:21:06 +0900 (933d39c) @@ -125,15 +125,12 @@ application.droonga({ plugins: options.plugins }); -application.connectionPool.updateHostNamesFromCluster() - .then(function(hostNames) { - application.connectionPool.startWatchClusterChanges(); - }); +application.connectionPool.startSyncHostNamesFromCluster(); server.listen(options.port, options.host); function shutdown() { - application.connectionPool.endWatchClusterChanges(); + application.connectionPool.stopSyncHostNamesFromCluster(); server.close(); if (options.pidFile && fs.existsSync(options.pidFile)) { fs.unlinkSync(options.pidFile); -------------- next part -------------- HTML����������������������������...ダウンロード