diff --git a/veilid-flutter/example/lib/config.dart b/veilid-flutter/example/lib/config.dart index 1b2eab2a..a80dd74f 100644 --- a/veilid-flutter/example/lib/config.dart +++ b/veilid-flutter/example/lib/config.dart @@ -78,7 +78,7 @@ Future getDefaultVeilidConfig() async { setValueTimeoutMs: null, setValueCount: 20, setValueFanout: 5, - minPeerCount: 1, //20, + minPeerCount: 20, minPeerRefreshTimeMs: 2000, validateDialInfoReceiptTimeMs: 2000, ), diff --git a/veilid-server/src/settings.rs b/veilid-server/src/settings.rs index 69114bba..1174be44 100644 --- a/veilid-server/src/settings.rs +++ b/veilid-server/src/settings.rs @@ -92,7 +92,7 @@ core: set_value_timeout: set_value_count: 20 set_value_fanout: 5 - min_peer_count: 1 # 20 + min_peer_count: 20 min_peer_refresh_time_ms: 2000 validate_dial_info_receipt_time_ms: 2000 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_count, 20u32); 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.validate_dial_info_receipt_time_ms,