server: get rid of unused warning

This commit is contained in:
Peter Cai 2021-04-06 07:31:03 +08:00
parent d4e86cab47
commit d54b4f4a33
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ impl Server {
SERVER.await
}
pub async fn handle_request(&self, ev: ExtendableEvent, req: Request) -> Response {
pub async fn handle_request(&self, _ev: ExtendableEvent, req: Request) -> Response {
let body = err_response!(Self::parse_dns_body(&req).await);
let query_id = body.header().id(); // random ID that needs to be preserved in response
let questions = err_response!(Self::extract_questions(body));