pull/36219/head
yijiem 12 months ago
parent e1812e8160
commit e102d7fe21
  1. 3
      src/core/load_balancing/weighted_round_robin/weighted_round_robin.cc

@ -483,7 +483,8 @@ float WeightedRoundRobin::EndpointWeight::GetWeight(
return 0;
}
// If we don't have at least blackout_period worth of data, return 0.
if (now - non_empty_since_ < blackout_period) {
if (blackout_period > Duration::Zero() &&
now - non_empty_since_ < blackout_period) {
++*num_not_yet_usable;
return 0;
}

Loading…
Cancel
Save