Skip to content

Commit

Permalink
chore: fix args
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Nov 7, 2023
1 parent 373895d commit 0291882
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions perf/impl/js-libp2p/v0.46/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ const testPrivKey = 'CAASpgkwggSiAgEAAoIBAQC2SKo/HMFZeBml1AF3XijzrxrfQXdJzjePBZA
const argv = parseArgs({
options: {
'run-server': {
type: 'boolean',
default: false
type: 'string',
default: 'false'
},
'server-address': {
type: 'string'
Expand Down Expand Up @@ -108,7 +108,7 @@ function splitHostPort (address) {
}
}

main(argv['run-server'], argv['server-address'], argv.transport, Number(argv['upload-bytes']), Number(argv['download-bytes'])).catch((err) => {
main(argv['run-server'] === 'true', argv['server-address'], argv.transport, Number(argv['upload-bytes']), Number(argv['download-bytes'])).catch((err) => {
// eslint-disable-next-line no-console
console.error(err)
process.exit(1)
Expand Down

0 comments on commit 0291882

Please sign in to comment.