Interplay between reservationConcurrency
and discoverRelays
#2654
-
While experimenting with circuitRelayTransport({
discoverRelays: 0,
reservationConcurrency: 1
}), Only setting circuitRelayTransport({
discoverRelays: 1,
reservationConcurrency: 1
}), What's weird is if I connect to two relays manually (via a bootstrap list), set
Is this a bug? or expected behaviour? It seems to me that setting |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
These settings control different things.
|
Beta Was this translation helpful? Give feedback.
These settings control different things.
discoverRelays
means "Make reservations on this many relays". So setting it to0
means you won't make any reservations, setting it to100
means you'll make 100 reservations.reservationConcurrency
means "Try to make this many reservations at the same time". So setting it to1
will make reservations on relays sequentially (bad if you encounter a relay that's slow to respond), setting it to a greater number will make that many reservation attempts in parallel, but the total number of reservations you'll make is still controlled bydiscoverRelays
.