mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-01-18 12:11:36 +00:00
swarm maxAge: increase to 20 min
This commit is contained in:
parent
6351f2b260
commit
8f33b95f9f
@ -9,7 +9,7 @@ var randomIterate = require('random-iterate')
|
||||
function Swarm (infoHash, server) {
|
||||
this.peers = new LRU({
|
||||
max: server.peersCacheLength || 1000,
|
||||
maxAge: server.peersCacheTtl || 900000 // 900 000ms = 15 minutes
|
||||
maxAge: server.peersCacheTtl || 20 * 60 * 1000 // 20 minutes
|
||||
})
|
||||
this.complete = 0
|
||||
this.incomplete = 0
|
||||
|
Loading…
Reference in New Issue
Block a user