huskies: merge 655_bug_matrix_bot_spawns_its_own_timerstore_instead_of_using_shared_appcontext_timer_store
This commit is contained in:
@@ -32,6 +32,7 @@ pub use config::BotConfig;
|
||||
|
||||
use crate::io::watcher::WatcherEvent;
|
||||
use crate::rebuild::ShutdownReason;
|
||||
use crate::service::timer::TimerStore;
|
||||
use crate::services::Services;
|
||||
use std::path::Path;
|
||||
use std::sync::Arc;
|
||||
@@ -69,6 +70,7 @@ pub fn spawn_bot(
|
||||
gateway_active_project: Option<Arc<RwLock<String>>>,
|
||||
gateway_projects: Vec<String>,
|
||||
gateway_project_urls: std::collections::BTreeMap<String, String>,
|
||||
timer_store: Arc<TimerStore>,
|
||||
) -> Option<tokio::task::AbortHandle> {
|
||||
let config = match BotConfig::load(project_root) {
|
||||
Some(c) => c,
|
||||
@@ -105,6 +107,7 @@ pub fn spawn_bot(
|
||||
gateway_active_project,
|
||||
gateway_projects,
|
||||
gateway_project_urls,
|
||||
timer_store,
|
||||
)
|
||||
.await
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user