refactor(#2442): split harness-state persistence out of events.rs
This commit is contained in:
parent
bf657177d3
commit
91607f3896
7 changed files with 349 additions and 328 deletions
|
|
@ -182,7 +182,7 @@ pub async fn run(socket: PathBuf) {
|
|||
// forge's own read-state, so it doesn't reintroduce the
|
||||
// read-before-comment coupling that the mark-read-on-delivery approach
|
||||
// suffered.
|
||||
let mut delivered: HashMap<u64, String> = crate::events::read_forge_cursor();
|
||||
let mut delivered: HashMap<u64, String> = crate::harness_state::read_forge_cursor();
|
||||
if !delivered.is_empty() {
|
||||
info!(
|
||||
entries = delivered.len(),
|
||||
|
|
@ -917,7 +917,7 @@ async fn poll_once(
|
|||
// changed, so a rebuild/restart reloads it instead of re-delivering
|
||||
// the whole unread backlog.
|
||||
if cursor_dirty {
|
||||
crate::events::write_forge_cursor(delivered);
|
||||
crate::harness_state::write_forge_cursor(delivered);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue