Make server main async
All checks were successful
Push Workflows / rustfmt (push) Successful in 5s
Push Workflows / tailwind-build (push) Successful in 5s
Push Workflows / test (push) Successful in 27s
Push Workflows / docs (push) Successful in 26s
Push Workflows / clippy (push) Successful in 22s
Push Workflows / build (push) Successful in 54s
Push Workflows / nix-build (push) Successful in 4m57s
All checks were successful
Push Workflows / rustfmt (push) Successful in 5s
Push Workflows / tailwind-build (push) Successful in 5s
Push Workflows / test (push) Successful in 27s
Push Workflows / docs (push) Successful in 26s
Push Workflows / clippy (push) Successful in 22s
Push Workflows / build (push) Successful in 54s
Push Workflows / nix-build (push) Successful in 4m57s
This commit is contained in:
@@ -23,7 +23,8 @@ fn main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "server")]
|
#[cfg(feature = "server")]
|
||||||
fn main() {
|
#[tokio::main]
|
||||||
|
async fn main() {
|
||||||
tracing_setup();
|
tracing_setup();
|
||||||
server::main()
|
server::main().await
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
use crate::App;
|
use crate::App;
|
||||||
|
|
||||||
pub fn main() {
|
pub async fn main() {
|
||||||
if let Err(e) = dotenvy::dotenv() {
|
if let Err(e) = dotenvy::dotenv() {
|
||||||
tracing::warn!("Error reading .env: {e}");
|
tracing::warn!("Error reading .env: {e}");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user