remove a warning and add a log

Co-authored-by: Clément Renault <clement@meilisearch.com>
This commit is contained in:
Irevoire 2021-07-05 17:43:28 +02:00 committed by Tamo
parent a57e522a67
commit 4562b278a8
No known key found for this signature in database
GPG Key ID: 20CD8020AFA88D69

View File

@ -983,7 +983,9 @@ async fn main() -> anyhow::Result<()> {
});
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);
#[allow(unreachable_code)]
warp::reply()
});