archiver-server
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -26,6 +26,5 @@ var Swarm = require('discovery-swarm') | ||
return | ||
return swarm | ||
function serveArchive (key) { | ||
console.log(`replicating ${key.toString('hex')} over Dat`) | ||
// random timeout so it doesn't flood DHT | ||
@@ -32,0 +31,0 @@ setTimeout(swarm.join(archiver.discoveryKey(key)), Math.floor(Math.random() * 30 * 1000)) |
{ | ||
"name": "archiver-server", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Serve keys found in a `hypercore-archiver` with `discovery-swarm`.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
4
1983
27