mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-10-01 02:04:24 +00:00
Name the per-run pass lock's type through an import
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
parent
4a20acafc7
commit
ee4850689e
1 changed files with 2 additions and 1 deletions
|
|
@ -52,6 +52,7 @@ use petri_execution::events::{self, EventId, EventSource, RunEvent};
|
|||
use petri_execution::{Access, RunKey, RunStore as _, inspect};
|
||||
use petri_store::StoreError;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use tokio::sync::Mutex as AsyncMutex;
|
||||
use tokio::time;
|
||||
use tracing::{debug, info, warn};
|
||||
|
||||
|
|
@ -153,7 +154,7 @@ pub struct Projector {
|
|||
slots: Mutex<HashMap<RunId, Slot>>,
|
||||
/// One pass at a time per run: a signalled pass and the startup pass
|
||||
/// over the same run never interleave their reads and writes.
|
||||
passes: Mutex<HashMap<RunId, Arc<tokio::sync::Mutex<()>>>>,
|
||||
passes: Mutex<HashMap<RunId, Arc<AsyncMutex<()>>>>,
|
||||
/// Test-only: stop the next pass after its reads, before its view
|
||||
/// transaction, as a crash there would.
|
||||
fault: AtomicBool,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue