Skip to content

Commit

Permalink
feat: remove local datacenters preference
Browse files Browse the repository at this point in the history
  • Loading branch information
lunev.d committed Nov 28, 2023
1 parent a7ecb55 commit 4e8eafa
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 4e8eafa

Please sign in to comment.