Make the tokio runtime optional

This commit is contained in:
Jonathan Kelley committed 2024-01-04 19:09:59 -08:00
1 parent 73d5069a20
commit 38216fa272
8 files changed
+60 -28

No files matched your search

+7 -2
View File
@@ -57,7 +57,8 @@ pub(super) async fn desktop_handler(
.body(Cow::from(body))
{
Ok(response) => {
return responder.respond(response);
responder.respond(response);
return;
}
Err(err) => tracing::error!("error building response: {}", err),
}
@@ -103,7 +104,10 @@ pub(super) async fn desktop_handler(
.header("Content-Type", content_type)
.body(Cow::from(asset))
{
Ok(response) => return responder.respond(response),
Ok(response) => {
responder.respond(response);
return;
}
Err(err) => tracing::error!("error building response: {}", err),
}
}
@@ -114,6 +118,7 @@ pub(super) async fn desktop_handler(
{
Ok(response) => {
responder.respond(response);
return;
}
Err(err) => tracing::error!("error building response: {}", err),
}