Skip to main content

check_handlers

Function check_handlers 

Source
pub async fn check_handlers<F, Fut>(open: &F) -> Report
where F: Fn() -> Fut + Sync, Fut: Future<Output = Arc<dyn HaltStore>> + Send,
Available on crate feature conformance only.
Expand description

Grades the kill switch on handlers built on the store open opens: each call must open the same backing store, starting empty, as check_store requires. The store is left empty.

The checks run in order, each on the state the last left: a halt that never reaches the other replica also fails the checks after it that need it to have.