# 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:
Mark Nadal 2023-02-17 18:28:04 -08:00
commit c274977eb6

View File

@ -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){