[priority LB] fix use-after-move bug

pull/35597/head
Mark D. Roth 11 months ago
parent ad1dc17030
commit 61025638b5
  1. 2
      src/core/ext/filters/client_channel/lb_policy/priority/priority.cc

@ -292,7 +292,7 @@ PriorityLb::PriorityLb(Args args)
: LoadBalancingPolicy(std::move(args)),
child_failover_timeout_(std::max(
Duration::Zero(),
args.args
channel_args()
.GetDurationFromIntMillis(GRPC_ARG_PRIORITY_FAILOVER_TIMEOUT_MS)
.value_or(kDefaultChildFailoverTimeout))) {
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_priority_trace)) {

Loading…
Cancel
Save