Skip to content

Commit cd24038

Browse files
committed
chore: use get providers as more obvious example
1 parent b169d44 commit cd24038

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/client/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ const client = createDelegatedRoutingV1HttpApiClient('https://delegated-ipfs.dev
8787
})
8888

8989
// per-request filter options
90-
for await (const peer of client.getPeers(peerIdFromString('QmFoo'), {
90+
for await (const prov of getProviders(CID.parse('bafy'), {
9191
filterProtocols: ['transport-ipfs-gateway-http'],
9292
filterAddrs: ['!p2p-circuit']
9393
})) {

packages/client/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
* })
6161
*
6262
* // per-request filter options
63-
* for await (const peer of client.getPeers(peerIdFromString('QmFoo'), {
63+
* for await (const prov of getProviders(CID.parse('bafy'), {
6464
* filterProtocols: ['transport-ipfs-gateway-http'],
6565
* filterAddrs: ['!p2p-circuit']
6666
* })) {

0 commit comments

Comments
 (0)