fix: correct usage of the libp2p API

This commit is contained in:
fryorcraken.eth 2022-11-17 11:30:07 +11:00
parent c7920f09f3
commit e3e1197a91
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 3 additions and 1 deletions

View File

@ -171,7 +171,9 @@ export async function defaultLibp2p(
streamMuxers: [new Mplex()], streamMuxers: [new Mplex()],
connectionEncryption: [new Noise()], connectionEncryption: [new Noise()],
identify: { identify: {
host: userAgent ?? DefaultUserAgent, host: {
agentVersion: userAgent ?? DefaultUserAgent,
},
}, },
} as Libp2pOptions, } as Libp2pOptions,
wakuRelay ? { pubsub: wakuRelay } : {}, wakuRelay ? { pubsub: wakuRelay } : {},