Skip to content

Commit

Permalink
fix: respect routers config in helia constructor (#652)
Browse files Browse the repository at this point in the history
take the passed routers config in createHelia

Co-authored-by: Daniel N <2color@users.noreply.github.com>
  • Loading branch information
2color and 2color authored Oct 16, 2024
1 parent 332580c commit 1b2934b
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 1b2934b

Please sign in to comment.