Fixed command-line argument parameter parsing across files from process.argv[2] to process.argv[3] (#115)

This commit is contained in:
Md Tanjin Alam
2024-08-14 13:52:15 +06:00
committed by GitHub
parent c2de1e14d8
commit e28cf00b10
3 changed files with 4 additions and 4 deletions

View File

@@ -188,7 +188,7 @@ Pear.teardown(() => swarm.destroy())
swarm.on('connection', conn => store.replicate(conn))
// create/get the hypercore instance using the public key supplied as command-line arg
const core = store.get({ key: b4a.from(process.argv[2], 'hex') })
const core = store.get({ key: b4a.from(process.argv[3], 'hex') })
// create a hyperbee instance using the hypercore instance
const bee = new Hyperbee(core, {