Skip to content

Commit

Permalink
ConcreteAddrs are now always available
Browse files Browse the repository at this point in the history
Signed-off-by: Eliza Weisman <eliza@buoyant.io>
  • Loading branch information
hawkw committed Apr 6, 2021
1 parent f7fb6bc commit 4720c62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions linkerd/service-profiles/src/split.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ impl<N: Clone, S, Req> Clone for NewSplit<N, S, Req> {
impl<T, N, S, Req> NewService<T> for NewSplit<N, S, Req>
where
T: Clone + Param<LookupAddr> + Param<Receiver>,
N: NewService<(Option<ConcreteAddr>, T), Service = S> + Clone,
N: NewService<(ConcreteAddr, T), Service = S> + Clone,
S: tower::Service<Req>,
S::Error: Into<Error>,
{
Expand All @@ -76,7 +76,7 @@ where
for Target { weight, addr } in targets.into_iter() {
services.push(
addr.clone(),
new_service.new_service((Some(ConcreteAddr(addr.clone())), target.clone())),
new_service.new_service((ConcreteAddr(addr.clone()), target.clone())),
);
addrs.insert(addr);
weights.push(weight);
Expand Down Expand Up @@ -140,7 +140,7 @@ where
debug!(%addr, "Creating target");
let svc = self
.new_service
.new_service((Some(ConcreteAddr(addr.clone())), self.target.clone()));
.new_service((ConcreteAddr(addr.clone()), self.target.clone()));
self.services.push(addr.clone(), svc);
} else {
trace!(%addr, "Target already exists");
Expand Down

0 comments on commit 4720c62

Please sign in to comment.