Skip to content

Commit

Permalink
Merge branch 'local-datacenters-settings' into 'master'
Browse files Browse the repository at this point in the history
feat: remove local datacenters preference

See merge request vostok-libraries/clusterclient.singular!1
  • Loading branch information
Lunev.d committed Nov 28, 2023
2 parents a7ecb55 + 4e8eafa commit b7d2673
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b7d2673

Please sign in to comment.