fix: Update relay example to use default reservation settings

This commit is contained in:
Joaquin Prada 2024-11-25 17:47:26 -03:00
parent c3be1d2fac
commit ed12f2b2cf

View File

@ -29,13 +29,7 @@ const server = await createLibp2p({
streamMuxers: [yamux()], streamMuxers: [yamux()],
services: { services: {
identify: identify(), identify: identify(),
relay: circuitRelayServer({ relay: circuitRelayServer()
reservations: {
maxReservations: 5000,
reservationTtl: 1000,
defaultDataLimit: BigInt(1024 * 1024 * 1024)
}
})
} }
}) })