html terminal
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs index 1a1b9ae..95ec46a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -10,12 +10,10 @@ mod webhook; use server::*; use std::net::SocketAddr; -// loads all the images into memory, ~300mb -use mindus::data::renderer::warmup; #[tokio::main(flavor = "current_thread")] async fn main() { - warmup(); + unsafe { mindus::warmup() }; Server::spawn(SocketAddr::from(( [0, 0, 0, 0], std::env::var("PORT").map_or(4001, |x| u16::from_str(&x).unwrap()), |