mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-14 12:46:49 +00:00
fix: panic on launch
Now we start the admin and sending threads at a later time.
This commit is contained in:
1 parent
50b0eb9929
commit
8b5b7a1f63
20 files changed
+46
-53
No files matched your search
+5
-4
@@ -1,10 +1,7 @@
|
||||
pub mod abstraction;
|
||||
pub mod key_value;
|
||||
|
||||
use crate::{
|
||||
services, utils, Config, Error,
|
||||
PduEvent, Result, Services, SERVICES,
|
||||
};
|
||||
use crate::{services, utils, Config, Error, PduEvent, Result, Services, SERVICES};
|
||||
use abstraction::KeyValueDatabaseEngine;
|
||||
use abstraction::KvTree;
|
||||
use directories::ProjectDirs;
|
||||
@@ -830,6 +827,8 @@ impl KeyValueDatabase {
|
||||
// This data is probably outdated
|
||||
db.presenceid_presence.clear()?;
|
||||
|
||||
services().admin.start_handler();
|
||||
|
||||
// Set emergency access for the conduit user
|
||||
match set_emergency_access() {
|
||||
Ok(pwd_set) => {
|
||||
@@ -846,6 +845,8 @@ impl KeyValueDatabase {
|
||||
}
|
||||
};
|
||||
|
||||
services().sending.start_handler();
|
||||
|
||||
Self::start_cleanup_task().await;
|
||||
|
||||
Ok(())
|
||||
|
||||
Reference in new issue
Block a user