mirror of
https://github.com/ntex-rs/ntex.git
synced 2025-04-03 04:47:39 +03:00
Fix handling payload timer after payload got consumed (#366)
This commit is contained in:
parent
3b49828e5f
commit
9c29de14cf
7 changed files with 138 additions and 96 deletions
|
@ -6,8 +6,7 @@
|
|||
unreachable_pub,
|
||||
missing_debug_implementations
|
||||
)]
|
||||
|
||||
use std::{future::Future, rc::Rc};
|
||||
use std::rc::Rc;
|
||||
|
||||
mod and_then;
|
||||
mod apply;
|
||||
|
@ -183,11 +182,9 @@ pub trait ServiceFactory<Req, Cfg = ()> {
|
|||
type InitError;
|
||||
|
||||
/// Create and return a new service value asynchronously.
|
||||
fn create(
|
||||
&self,
|
||||
cfg: Cfg,
|
||||
) -> impl Future<Output = Result<Self::Service, Self::InitError>>;
|
||||
async fn create(&self, cfg: Cfg) -> Result<Self::Service, Self::InitError>;
|
||||
|
||||
#[inline]
|
||||
/// Create and return a new service value asynchronously and wrap into a container
|
||||
async fn pipeline(&self, cfg: Cfg) -> Result<Pipeline<Self::Service>, Self::InitError>
|
||||
where
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue