[Groonga-commit] droonga/droonga-http-server at 21cba6d [master] Simplify

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Oct 31 18:36:42 JST 2014


YUKI Hiroshi	2014-10-31 18:36:42 +0900 (Fri, 31 Oct 2014)

  New Revision: 21cba6db9ecb655bbd7451f65f6e455fa6a49766
  https://github.com/droonga/droonga-http-server/commit/21cba6db9ecb655bbd7451f65f6e455fa6a49766

  Message:
    Simplify

  Modified files:
    bin/droonga-http-server-report-live-engine-hosts

  Modified: bin/droonga-http-server-report-live-engine-hosts (+2 -3)
===================================================================
--- bin/droonga-http-server-report-live-engine-hosts    2014-10-31 18:35:34 +0900 (6f52d1f)
+++ bin/droonga-http-server-report-live-engine-hosts    2014-10-31 18:36:42 +0900 (91232ab)
@@ -13,10 +13,9 @@ var client = new SerfClient({
 
 client.getLiveEngineNodes()
   .then(function(members) {
-    var hosts = members.map(function(member) {
-      return member.HostName;
+    members.forEach(function(member) {
+      console.log(member.HostName);
     });
-    console.log(hosts.join('\n'));
     process.exit(true);
   })
   .catch(function(error) {
-------------- next part --------------
HTML����������������������������...
Descargar 



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