min_peer_count

This commit is contained in:
John Smith 2022-07-05 21:38:46 -04:00
parent 895fbf77c5
commit 48cd02c39d
2 changed files with 3 additions and 3 deletions

View File

@ -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,
), ),

View File

@ -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,