From ca3a6684cb042bf1c8fad0044ed9f46cb0deb9ec Mon Sep 17 00:00:00 2001 From: Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> Date: Thu, 15 Sep 2022 22:16:53 +0200 Subject: [PATCH] more --- tower/src/balance.rs | 2 +- tower/src/lib.rs | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/tower/src/balance.rs b/tower/src/balance.rs index 6fa7fad..fe720e8 100644 --- a/tower/src/balance.rs +++ b/tower/src/balance.rs @@ -74,6 +74,7 @@ impl Builder { { let d: PoolDiscoverer = todo!(); + // THE CRITICAL STATEMENT let x = Balance::new(Box::pin(d)); todo!() @@ -116,5 +117,4 @@ impl> Service for DropNotifyService type Response = Svc::Response; type Future = Svc::Future; type Error = Svc::Error; - } diff --git a/tower/src/lib.rs b/tower/src/lib.rs index bd87523..769ec9a 100644 --- a/tower/src/lib.rs +++ b/tower/src/lib.rs @@ -40,14 +40,9 @@ where pub struct Change(K, V); pub trait Service { - /// Responses given by the service. type Response; - - /// Errors produced by the service. type Error; - - /// The future response value. - type Future: Future>; + type Future; } pub trait MakeService {