Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

port stack-metrics to std::future #513

Merged
merged 1 commit into from
May 13, 2020
Merged

Conversation

hawkw
Copy link
Contributor

@hawkw hawkw commented May 13, 2020

I had forgotten that linkerd2-stack-metrics is actually kind of load
bearing: the TrackServiceLayer is necessary for powering cache
eviction as well as being used for debugging. It turns out that we need
this to create stacks that work.

This branch ports linkerd2-stack-metrics to std::future. This change
was pretty trivial; I just updated to use the new tower::Service
trait. I also pruned a bunch of dependencies that this crate wasn't
actually using from the Cargo.toml.

Signed-off-by: Eliza Weisman eliza@buoyant.io

I had forgotten that `linkerd2-stack-metrics` is actually kind of load
bearing: the `TrackServiceLayer` is necessary for powering cache
eviction as well as being used for debugging. It turns out that we need
this to create stacks that work.

This branch ports `linkerd2-stack-metrics` to std::future. This change
was pretty trivial; I just updated to use the new `tower::Service`
trait. I also pruned a bunch of dependencies that this crate wasn't
actually using from the Cargo.toml.

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
@hawkw hawkw requested a review from a team May 13, 2020 19:23
@hawkw hawkw requested a review from a team May 13, 2020 19:26
@hawkw hawkw merged commit 47d207b into master-tokio-0.2 May 13, 2020
@olix0r olix0r deleted the eliza/0.2-stack-metrics branch May 13, 2020 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants