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,