File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ const client = createDelegatedRoutingV1HttpApiClient('https://delegated-ipfs.dev
87
87
})
88
88
89
89
// per-request filter options
90
- for await (const peer of client . getPeers ( peerIdFromString ( ' QmFoo ' ), {
90
+ for await (const prov of getProviders ( CID . parse ( ' bafy ' ), {
91
91
filterProtocols: [' transport-ipfs-gateway-http' ],
92
92
filterAddrs: [' !p2p-circuit' ]
93
93
})) {
Original file line number Diff line number Diff line change 60
60
* })
61
61
*
62
62
* // per-request filter options
63
- * for await (const peer of client.getPeers(peerIdFromString('QmFoo '), {
63
+ * for await (const prov of getProviders(CID.parse('bafy '), {
64
64
* filterProtocols: ['transport-ipfs-gateway-http'],
65
65
* filterAddrs: ['!p2p-circuit']
66
66
* })) {
You can’t perform that action at this time.
0 commit comments