archiver-server
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -11,2 +11,3 @@ var Swarm = require('discovery-swarm') | ||
tcp: opts.tcp || true, | ||
hash: false, | ||
stream: function () { | ||
@@ -31,4 +32,6 @@ return archiver.replicate() | ||
// random timeout so it doesn't flood DHT | ||
setTimeout(swarm.join(archiver.discoveryKey(key)), Math.floor(Math.random() * 30 * 1000)) | ||
setTimeout(function () { | ||
swarm.join(archiver.discoveryKey(key)) | ||
}, Math.floor(Math.random() * 30 * 1000)) | ||
} | ||
} |
{ | ||
"name": "archiver-server", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Serve keys found in a `hypercore-archiver` with `discovery-swarm`.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
2026
30