lemmy/src/main.rs

9 lines
257 B
Rust
Raw Normal View History

use lemmy_server::{init_logging, start_lemmy_server};
use lemmy_utils::{error::LemmyError, settings::SETTINGS};
2020-09-12 01:37:25 +00:00
#[actix_web::main]
pub async fn main() -> Result<(), LemmyError> {
init_logging(&SETTINGS.opentelemetry_url)?;
start_lemmy_server().await
}