From 8af83ceac69e918da54cbbee23a9f3aae8b00531 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20H=C3=A4ggblad?= Date: Wed, 30 Aug 2023 09:57:56 +0200 Subject: [PATCH] Add note about country to continent mapping --- .../src/client/topology_control/geo_aware_provider.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/client-core/src/client/topology_control/geo_aware_provider.rs b/common/client-core/src/client/topology_control/geo_aware_provider.rs index 552a66f64b..7a46731d26 100644 --- a/common/client-core/src/client/topology_control/geo_aware_provider.rs +++ b/common/client-core/src/client/topology_control/geo_aware_provider.rs @@ -52,6 +52,8 @@ pub enum CountryGroup { impl CountryGroup { // We map contry codes into group, which initially are continent codes to a first approximation, // but we do it manually to reserve the right to tweak this distribution for our purposes. + // NOTE: I did this quickly and it's not a complete list of all countries, but only those that + // were present in the network at the time. Please add more as needed. fn new(country_code: &str) -> Self { let country_code = country_code.to_uppercase(); use CountryGroup::*;