Skip to content

Commit c61a196

Browse files
pyropybajtos
andauthored
Update lib/ipni-client.js
Co-authored-by: Miroslav Bajtoš <oss@bajtos.net>
1 parent 3710910 commit c61a196

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ipni-client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,6 @@ async function getRetrievalProviders(cid) {
110110
return result.MultihashResults.flatMap((r) => r.ProviderResults)
111111
}
112112

113-
function formatProviderAddress(id, address, protocol) {
113+
function formatProviderAddress(peerId, address, protocol) {
114114
return protocol === 'http' ? address : `${address}/p2p/${id}`
115115
}

0 commit comments

Comments
 (0)