From 5cbc29306aa65e57836cf4ec1e140e3f60deb3eb Mon Sep 17 00:00:00 2001 From: dowwie Date: Thu, 4 Apr 2019 14:02:53 -0400 Subject: [PATCH] updated as per comments --- actix-service/src/lib.rs | 3 --- actix-service/src/transform.rs | 4 +--- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/actix-service/src/lib.rs b/actix-service/src/lib.rs index 6e0aea4b..3b1e6e38 100644 --- a/actix-service/src/lib.rs +++ b/actix-service/src/lib.rs @@ -53,9 +53,6 @@ pub use self::then::{Then, ThenNewService}; pub use self::transform::{apply_transform, IntoTransform, Transform}; /// An asynchronous function from `Request` to a `Response`. -/// The entire request/response lifecycle can be represented as a pipeline of -/// Services. The linkage between Services is represented in terms of ownership, -/// where the preceeding Service owns that which follows it. pub trait Service { /// Requests handled by the service. type Request; diff --git a/actix-service/src/transform.rs b/actix-service/src/transform.rs index 03b84b5b..34b3d0c0 100644 --- a/actix-service/src/transform.rs +++ b/actix-service/src/transform.rs @@ -40,9 +40,7 @@ pub trait Transform { /// The future response value. type Future: Future; - /// Creates and returns a new Service component, asynchronously. `new_transform` - /// is called only once during the lifetime of a server -- as the server - /// initializes. + /// Creates and returns a new Service component, asynchronously fn new_transform(&self, service: S) -> Self::Future; /// Map this service's factory error to a different error,