From 4e8eafa7681e7fe582de6a6df1313c8f14fa14cf Mon Sep 17 00:00:00 2001 From: "lunev.d" Date: Tue, 28 Nov 2023 12:15:07 +0500 Subject: [PATCH] feat: remove local datacenters preference --- .../IClusterClientConfigurationExtensions.cs | 1 - Vostok.ClusterClient.Singular/InternalSingularClientProvider.cs | 1 - 2 files changed, 2 deletions(-) diff --git a/Vostok.ClusterClient.Singular/IClusterClientConfigurationExtensions.cs b/Vostok.ClusterClient.Singular/IClusterClientConfigurationExtensions.cs index ad89c73..349dc9f 100644 --- a/Vostok.ClusterClient.Singular/IClusterClientConfigurationExtensions.cs +++ b/Vostok.ClusterClient.Singular/IClusterClientConfigurationExtensions.cs @@ -66,7 +66,6 @@ public static void SetupSingular(this IClusterClientConfiguration configuration, var datacenters = DatacentersProvider.Get(); builder.AddRelativeWeightModifier(new RelativeWeightSettings()); builder.SetupAvoidInactiveDatacentersWeightModifier(datacenters); - builder.SetupBoostLocalDatacentersWeightModifier(datacenters); }); var internalSingularClient = InternalSingularClientProvider.Get(configuration.Log.WithDisabledLevels(LogLevel.Debug), settings.AlternativeClusterProvider); diff --git a/Vostok.ClusterClient.Singular/InternalSingularClientProvider.cs b/Vostok.ClusterClient.Singular/InternalSingularClientProvider.cs index df715db..e94d396 100644 --- a/Vostok.ClusterClient.Singular/InternalSingularClientProvider.cs +++ b/Vostok.ClusterClient.Singular/InternalSingularClientProvider.cs @@ -51,7 +51,6 @@ internal static IClusterClient Create(ILog log = null, IClusterProvider alternat var datacenters = DatacentersProvider.Get(); builder.AddRelativeWeightModifier(new RelativeWeightSettings()); builder.SetupAvoidInactiveDatacentersWeightModifier(datacenters); - builder.SetupBoostLocalDatacentersWeightModifier(datacenters); }); configuration.Logging.LoggingMode = LoggingMode.SingleShortMessage; configuration.TargetEnvironment = SingularConstants.DefaultZone;