From d705be775e62682f84e40d0bca7efac6fb035631 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Thu, 30 Apr 2015 21:00:14 -0700 Subject: [PATCH] generate 5 offers in the browser, not 50 --- lib/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common.js b/lib/common.js index a6f191a..3b255e4 100644 --- a/lib/common.js +++ b/lib/common.js @@ -6,7 +6,7 @@ var extend = require('xtend/mutable') exports.DEFAULT_ANNOUNCE_INTERVAL = 30 * 60 * 1000 // 30 minutes -exports.DEFAULT_ANNOUNCE_PEERS = 50 +exports.DEFAULT_ANNOUNCE_PEERS = process.browser ? 5 : 50 exports.MAX_ANNOUNCE_PEERS = 82 exports.binaryToHex = function (str) {