mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
Merge branch 'master' of http://github.com/amark/gun
# Please enter a commit message to explain why this merge is necessary, # especially if it merges an updated upstream into a topic branch. # # Lines starting with '#' will be ignored, and an empty message aborts # the commit.
This commit is contained in:
commit
c274977eb6
@ -9,7 +9,7 @@ function start(root){
|
||||
if(root.axe){ return }
|
||||
var opt = root.opt, peers = opt.peers;
|
||||
if(false === opt.axe){ return }
|
||||
if((typeof process !== "undefined") && 'false' === ''+(process.env||'').AXE){ return }
|
||||
if((typeof process !== "undefined") && 'false' === ''+(opt.env=process.env||'').AXE){ return }
|
||||
Gun.log.once("AXE", "AXE relay enabled!");
|
||||
var axe = root.axe = {}, tmp, id;
|
||||
var mesh = opt.mesh = opt.mesh || Gun.Mesh(root); // DAM!
|
||||
@ -219,7 +219,7 @@ function start(root){
|
||||
The mob threshold might be determined by other factors,
|
||||
like how much RAM or CPU stress we have.
|
||||
*/
|
||||
opt.mob = opt.mob || 9900; // should be based on ulimit, some clouds as low as 10K.
|
||||
opt.mob = opt.mob || parseFloat((opt.env||'').MOB) || 9900; // should be based on ulimit, some clouds as low as 10K.
|
||||
|
||||
// handle rebalancing a mob of peers:
|
||||
root.on('hi', function(peer){
|
||||
|
Loading…
x
Reference in New Issue
Block a user