]> Untitled Git - lemmy.git/blobdiff - src/main.rs
Remove `actix_rt` & use standard tokio spawn (#3158)
[lemmy.git] / src / main.rs
index 039db5320ebe70d4b398a50caabc47308e79dd73..5fc03ed025d28c567878dad7b8882497f618906a 100644 (file)
@@ -1,7 +1,7 @@
 use lemmy_server::{init_logging, start_lemmy_server};
 use lemmy_utils::{error::LemmyError, settings::SETTINGS};
 
-#[actix_web::main]
+#[tokio::main]
 pub async fn main() -> Result<(), LemmyError> {
   init_logging(&SETTINGS.opentelemetry_url)?;
   #[cfg(not(feature = "embed-pictrs"))]
@@ -15,7 +15,6 @@ pub async fn main() -> Result<(), LemmyError> {
       .port()
       .unwrap_or(8080);
     let pictrs_address = ["127.0.0.1", &pictrs_port.to_string()].join(":");
-    println!("pictrs_address = {}", pictrs_address);
     pict_rs::ConfigSource::memory(serde_json::json!({
         "server": {
             "address": pictrs_address