Skip to content

Commit 6247d38

Browse files
committed
hmon: reworked logic monitor
- Add const constructor to `StateTag`. - Atomic `LogicState` containing current state index and monitor status. - Updated logic monitor API. - Reworked internal of logic monitor.
1 parent eb6073f commit 6247d38

5 files changed

Lines changed: 411 additions & 186 deletions

File tree

src/health_monitoring_lib/rust/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,8 +372,8 @@ mod tests {
372372
let state1 = StateTag::from("state1");
373373
let state2 = StateTag::from("state2");
374374
LogicMonitorBuilder::new(state1)
375-
.add_state(state2)
376-
.add_transition((state1, state2))
375+
.add_state(state1, &[state2])
376+
.add_state(state2, &[state1])
377377
}
378378

379379
#[test]

0 commit comments

Comments
 (0)