mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 02:27:40 +08:00
Update meilisearch-http/src/extractors/sequential_extractor.rs
Co-authored-by: Clément Renault <clement@meilisearch.com>
This commit is contained in:
parent
0026410c61
commit
19da45c53b
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user