Skip to content

Commit 4252b54

Browse files
committed
fix: remove relay server + restored rust relay config (#49)
1 parent 6cf9973 commit 4252b54

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

packages/frontend/src/lib/libp2p.ts

-4
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@ export async function startLibp2p() {
4343
}), webRTCDirect(), circuitRelayTransport({
4444
discoverRelays: 10,
4545
}),],
46-
relay: circuitRelayServer({
47-
maxInboundHopStreams: 100,
48-
maxOutboundHopStreams: 100,
49-
}),
5046
connectionEncryption: [noise()],
5147
connectionManager: {
5248
maxConnections: 200,

rust-peer/src/main.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -288,9 +288,8 @@ fn create_swarm(
288288
relay: relay::Behaviour::new(
289289
local_peer_id,
290290
relay::Config {
291-
max_reservations: 200,
291+
max_reservations: 400,
292292
max_reservations_per_peer: 10,
293-
reservation_duration: Duration::from_secs(60),
294293
..Default::default()
295294
},
296295
),

0 commit comments

Comments
 (0)