From 4bf9947153569b329fd8f539c6c50f1b84255491 Mon Sep 17 00:00:00 2001 From: Nutomic Date: Thu, 5 Oct 2023 13:41:05 +0200 Subject: [PATCH] Add comment to explain startup server (ref #4005) (#4022) * Add comment to explain startup server (ref #4005) * ci --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index fe16166a6..c093faaca 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -119,6 +119,7 @@ pub(crate) const REQWEST_TIMEOUT: Duration = Duration::from_secs(10); pub async fn start_lemmy_server(args: CmdArgs) -> Result<(), LemmyError> { let settings = SETTINGS.to_owned(); + // return error 503 while running db migrations and startup tasks let mut startup_server_handle = None; if args.http_server { startup_server_handle = Some(create_startup_server()?);