huskies: merge 615_story_extract_timer_service
This commit is contained in:
+2
-2
@@ -780,7 +780,7 @@ async fn main() -> Result<(), std::io::Error> {
|
||||
// in `chat::transport::matrix::bot::run::spawn_bot`. Refactor to consume this
|
||||
// shared instance via `AppContext.timer_store` so cancellations from MCP
|
||||
// tools and the bot's tick loop see the same in-memory state.
|
||||
let timer_store = std::sync::Arc::new(crate::chat::timer::TimerStore::load(
|
||||
let timer_store = std::sync::Arc::new(crate::service::timer::TimerStore::load(
|
||||
startup_root
|
||||
.as_ref()
|
||||
.map(|r| r.join(".huskies").join("timers.json"))
|
||||
@@ -844,7 +844,7 @@ async fn main() -> Result<(), std::io::Error> {
|
||||
// Timer: fire due timers every second.
|
||||
if let Some(ref root) = tick_root {
|
||||
let result =
|
||||
crate::chat::timer::tick_once(&tick_timer, &tick_agents, root).await;
|
||||
crate::service::timer::tick_once(&tick_timer, &tick_agents, root).await;
|
||||
if let Err(msg) = result {
|
||||
crate::slog_error!("[tick] Timer tick panicked: {msg}");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user