mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-27 04:25:06 +08:00
remove a warning and add a log
Co-authored-by: Clément Renault <clement@meilisearch.com>
This commit is contained in:
parent
a57e522a67
commit
4562b278a8
@ -983,7 +983,9 @@ async fn main() -> anyhow::Result<()> {
|
|||||||
});
|
});
|
||||||
|
|
||||||
let die_route = warp::filters::method::get().and(warp::path!("die")).map(move || {
|
let die_route = warp::filters::method::get().and(warp::path!("die")).map(move || {
|
||||||
|
eprintln!("Killed by an HTTP request received on the die route");
|
||||||
std::process::exit(0);
|
std::process::exit(0);
|
||||||
|
#[allow(unreachable_code)]
|
||||||
warp::reply()
|
warp::reply()
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user