Skip to content

Commit

Permalink
Add keepAlive to pub server
Browse files Browse the repository at this point in the history
  • Loading branch information
HDegroote committed Apr 3, 2024
1 parent 2e0c79e commit 0f2b3a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pub.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ if (!+argv.l) {
}

const conf = {}
conf.keepAlive = 5000

if (argv.seed) {
conf.seed = argv.seed
Expand Down Expand Up @@ -51,7 +52,7 @@ const debug = argv.debug

const seed = Buffer.from(conf.seed, 'hex')

const dht = new HyperDHT()
const dht = new HyperDHT({ connectionKeepAlive: conf.keepAlive })
const keyPair = HyperDHT.keyPair(seed)

const stats = { cid: 0 }
Expand Down

0 comments on commit 0f2b3a8

Please sign in to comment.