Skip to content

Commit

Permalink
feat(app): MatchedRoute impls Param<ParentRef> and Param<RouteRef>
Browse files Browse the repository at this point in the history
Signed-off-by: katelyn martin <[email protected]>
  • Loading branch information
cratelyn committed Nov 7, 2024
1 parent 50288aa commit b408886
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions linkerd/app/outbound/src/http/logical/policy/route.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,18 @@ impl<T: Clone, M, F, P> svc::Param<BackendDistribution<T, F>> for MatchedRoute<T
}
}

impl<T, M, F, P> svc::Param<ParentRef> for MatchedRoute<T, M, F, P> {
fn param(&self) -> ParentRef {
self.params.parent_ref.clone()
}
}

impl<T, M, F, P> svc::Param<RouteRef> for MatchedRoute<T, M, F, P> {
fn param(&self) -> RouteRef {
self.params.route_ref.clone()
}
}

// === impl Http ===

impl<T> filters::Apply for Http<T> {
Expand Down

0 comments on commit b408886

Please sign in to comment.