Skip to content
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.

Commit

Permalink
fix: do not recreate multiaddr (#34)
Browse files Browse the repository at this point in the history
The multiaddrs are already multiaddrs so no need to stringify and parse them again.
  • Loading branch information
achingbrain committed Sep 21, 2022
1 parent a0c4421 commit 8fbcc57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/address-book.ts
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ async function filterMultiaddrs (peerId: PeerId, multiaddrs: Multiaddr[], addres
(source) => filter(source, async (multiaddr) => await addressFilter(peerId, multiaddr)),
(source) => map(source, (multiaddr) => {
return {
multiaddr: new Multiaddr(multiaddr.toString()),
multiaddr,
isCertified
}
}),
Expand Down

0 comments on commit 8fbcc57

Please sign in to comment.