Update meilisearch-http/src/extractors/sequential_extractor.rs

Co-authored-by: Clément Renault <clement@meilisearch.com>
This commit is contained in:
ad hoc 2022-03-07 15:02:07 +01:00 committed by GitHub
parent 0026410c61
commit 19da45c53b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,7 @@ use pin_project_lite::pin_project;
/// `SeqHandler` is an actix `Handler` that enforces that extractors errors are returned in the /// `SeqHandler` is an actix `Handler` that enforces that extractors errors are returned in the
/// same order as they are defined in the wrapped handler. This is needed because, by default, actix /// same order as they are defined in the wrapped handler. This is needed because, by default, actix
/// to resolves the extractors concurrently, whereas we always need the authentication extractor to /// resolves the extractors concurrently, whereas we always need the authentication extractor to
/// throw first. /// throw first.
#[derive(Clone)] #[derive(Clone)]
pub struct SeqHandler<H>(pub H); pub struct SeqHandler<H>(pub H);