瀏覽代碼

add load balancing

Dotos 8 年之前
父節點
當前提交
9e28f53c5e
共有 1 個文件被更改,包括 0 次插入4 次删除
  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 :