Skip to content

Commit

Permalink
fix: respect routers config
Browse files Browse the repository at this point in the history
take the passed routers config in createHelia
  • Loading branch information
2color committed Oct 15, 2024
1 parent 332580c commit 6376c2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/helia/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export async function createHelia (init: Partial<HeliaInit> = {}): Promise<Helia
trustlessGateway(),
bitswap()
],
routers: [
routers: init.routers ?? [
libp2pRouting(libp2p),
httpGatewayRouting()
],
Expand Down

0 comments on commit 6376c2f

Please sign in to comment.