mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-10-31 22:18:59 +00:00
c3fbb7702f
* Fix error during site creation due to empty LocalSiteRateLimit update * Move main function into lib.rs, to allow calling from other crates Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
8 lines
257 B
Rust
8 lines
257 B
Rust
use lemmy_server::{init_logging, start_lemmy_server};
|
|
use lemmy_utils::{error::LemmyError, settings::SETTINGS};
|
|
|
|
#[actix_web::main]
|
|
pub async fn main() -> Result<(), LemmyError> {
|
|
init_logging(&SETTINGS.opentelemetry_url)?;
|
|
start_lemmy_server().await
|
|
}
|