min_peer_count
This commit is contained in:
parent
895fbf77c5
commit
48cd02c39d
@ -78,7 +78,7 @@ Future<VeilidConfig> getDefaultVeilidConfig() async {
|
|||||||
setValueTimeoutMs: null,
|
setValueTimeoutMs: null,
|
||||||
setValueCount: 20,
|
setValueCount: 20,
|
||||||
setValueFanout: 5,
|
setValueFanout: 5,
|
||||||
minPeerCount: 1, //20,
|
minPeerCount: 20,
|
||||||
minPeerRefreshTimeMs: 2000,
|
minPeerRefreshTimeMs: 2000,
|
||||||
validateDialInfoReceiptTimeMs: 2000,
|
validateDialInfoReceiptTimeMs: 2000,
|
||||||
),
|
),
|
||||||
|
@ -92,7 +92,7 @@ core:
|
|||||||
set_value_timeout:
|
set_value_timeout:
|
||||||
set_value_count: 20
|
set_value_count: 20
|
||||||
set_value_fanout: 5
|
set_value_fanout: 5
|
||||||
min_peer_count: 1 # 20
|
min_peer_count: 20
|
||||||
min_peer_refresh_time_ms: 2000
|
min_peer_refresh_time_ms: 2000
|
||||||
validate_dial_info_receipt_time_ms: 2000
|
validate_dial_info_receipt_time_ms: 2000
|
||||||
upnp: false
|
upnp: false
|
||||||
@ -1482,7 +1482,7 @@ mod tests {
|
|||||||
assert_eq!(s.core.network.dht.set_value_timeout_ms, None);
|
assert_eq!(s.core.network.dht.set_value_timeout_ms, None);
|
||||||
assert_eq!(s.core.network.dht.set_value_count, 20u32);
|
assert_eq!(s.core.network.dht.set_value_count, 20u32);
|
||||||
assert_eq!(s.core.network.dht.set_value_fanout, 5u32);
|
assert_eq!(s.core.network.dht.set_value_fanout, 5u32);
|
||||||
assert_eq!(s.core.network.dht.min_peer_count, 1u32);
|
assert_eq!(s.core.network.dht.min_peer_count, 20u32);
|
||||||
assert_eq!(s.core.network.dht.min_peer_refresh_time_ms, 2_000u32);
|
assert_eq!(s.core.network.dht.min_peer_refresh_time_ms, 2_000u32);
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
s.core.network.dht.validate_dial_info_receipt_time_ms,
|
s.core.network.dht.validate_dial_info_receipt_time_ms,
|
||||||
|
Loading…
Reference in New Issue
Block a user