Ver Fonte

add load balancing

Dotos há 8 anos atrás
pai
commit
9e28f53c5e
1 ficheiros alterados com 0 adições e 4 exclusões
  1. 0 4
      bin/www

+ 0 - 4
bin/www

@@ -99,10 +99,6 @@ if (cluster.isMaster) {
      */
 
     function onListening() {
-
-        if (cluster.isWorker) {
-            console.log('worker' + cluster.worker.id);
-        }
         let addr = server.address();
         let bind = typeof addr === 'string' ?
             'pipe ' + addr :