diff --git a/axe.js b/axe.js index 19594d2c..16566f0f 100644 --- a/axe.js +++ b/axe.js @@ -109,7 +109,7 @@ at.on('in', input); at.on('in2', input); function input(msg){ - var to = this.to, peer = (msg._||'').via || mesh.leap; // warning! mesh.leap could be buggy! + var to = this.to, peer = (msg._||'').via; // warning! mesh.leap could be buggy! var dht = opt.dht; var routes = axe.routes || (axe.routes = {}); // USE RAD INSTEAD! TMP TESTING! var get = msg.get, hash, tmp; diff --git a/examples/http.js b/examples/http.js index dba51779..9c011f49 100644 --- a/examples/http.js +++ b/examples/http.js @@ -1,8 +1,8 @@ ;(function(){ - /*var cluster = require('cluster'); + var cluster = require('cluster'); if(cluster.isMaster){ - return cluster.fork() && cluster.on('exit', function(){ cluster.fork() }); - }*/ + return cluster.fork() && cluster.on('exit', function(){ cluster.fork(); require('../lib/crashed'); }); + } var fs = require('fs'); var config = { port: process.env.OPENSHIFT_NODEJS_PORT || process.env.VCAP_APP_PORT || process.env.PORT || process.argv[2] || 8765 }; diff --git a/examples/todo/index.html b/examples/todo/index.html index c8a5d305..3764edc4 100644 --- a/examples/todo/index.html +++ b/examples/todo/index.html @@ -113,31 +113,6 @@ - -