Skip to content

Commit

Permalink
adjust param type
Browse files Browse the repository at this point in the history
  • Loading branch information
bohhyang committed Oct 28, 2024
1 parent c9b8f59 commit e719789
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ public ZooKeeperAnnouncer(LoadBalancerServer server, boolean initialIsUp,

public ZooKeeperAnnouncer(LoadBalancerServer server, boolean initialIsUp,
boolean isDarkWarmupEnabled, String warmupClusterName, int warmupDuration, ScheduledExecutorService executorService,
ServiceDiscoveryEventEmitter eventEmitter, BigDecimal maxWeight, ActOnWeightBreach actOnWeightBreach)
ServiceDiscoveryEventEmitter eventEmitter, String maxWeight, ActOnWeightBreach actOnWeightBreach)
{
_server = server;
// initialIsUp is used for delay mark up. If it's false, there won't be markup when the announcer is started.
Expand All @@ -246,8 +246,7 @@ public ZooKeeperAnnouncer(LoadBalancerServer server, boolean initialIsUp,
_warmupDuration = warmupDuration;
_executorService = executorService;
_eventEmitter = eventEmitter;
_maxWeight = maxWeight;

_maxWeight = maxWeight == null ? null : new BigDecimal(maxWeight);
if (actOnWeightBreach != null)
{
_actOnWeightBreach = actOnWeightBreach;
Expand Down

0 comments on commit e719789

Please sign in to comment.