From ed12f2b2cfc9eaecc4c441eaaff789aec86c351c Mon Sep 17 00:00:00 2001 From: Joaquin Prada Date: Mon, 25 Nov 2024 17:47:26 -0300 Subject: [PATCH 1/2] fix: Update relay example to use default reservation settings --- test/utils/relay.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/test/utils/relay.js b/test/utils/relay.js index 11d9196f..0619bc28 100644 --- a/test/utils/relay.js +++ b/test/utils/relay.js @@ -29,13 +29,7 @@ const server = await createLibp2p({ streamMuxers: [yamux()], services: { identify: identify(), - relay: circuitRelayServer({ - reservations: { - maxReservations: 5000, - reservationTtl: 1000, - defaultDataLimit: BigInt(1024 * 1024 * 1024) - } - }) + relay: circuitRelayServer() } }) From adb8d77aa2bf6f7bcbdff73b412eb902db3fdd35 Mon Sep 17 00:00:00 2001 From: Joaquin Prada Date: Mon, 25 Nov 2024 19:12:35 -0300 Subject: [PATCH 2/2] fix: Revert default relay settings, keep updated ttl --- test/utils/relay.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/utils/relay.js b/test/utils/relay.js index 0619bc28..862308aa 100644 --- a/test/utils/relay.js +++ b/test/utils/relay.js @@ -29,7 +29,12 @@ const server = await createLibp2p({ streamMuxers: [yamux()], services: { identify: identify(), - relay: circuitRelayServer() + relay: circuitRelayServer({ + reservations: { + maxReservations: 5000, + defaultDataLimit: BigInt(1024 * 1024 * 1024) + } + }) } })