mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-10 02:05:10 +00:00
* Add comment to explain startup server (ref #4005) * ci
This commit is contained in:
parent
0115613f90
commit
4bf9947153
|
@ -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()?);
|
||||
|
|
Loading…
Reference in a new issue