Skip to content

Commit 1b2934b

Browse files
authored
fix: respect routers config in helia constructor (#652)
take the passed routers config in createHelia Co-authored-by: Daniel N <2color@users.noreply.github.com>
1 parent 332580c commit 1b2934b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/helia/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export async function createHelia (init: Partial<HeliaInit> = {}): Promise<Helia
121121
trustlessGateway(),
122122
bitswap()
123123
],
124-
routers: [
124+
routers: init.routers ?? [
125125
libp2pRouting(libp2p),
126126
httpGatewayRouting()
127127
],

0 commit comments

Comments
 (0)