Skip to content

Commit

Permalink
docs: clarify chance of deadlock for interval miner
Browse files Browse the repository at this point in the history
  • Loading branch information
Wodann committed Feb 13, 2024
1 parent 954c6a6 commit fa34d1a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/edr_provider/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ lazy_static! {
pub struct Provider<LoggerErrorT: Debug> {
data: Arc<AsyncMutex<ProviderData<LoggerErrorT>>>,
/// Interval miner runs in the background, if enabled. It holds the data
/// mutex, so
/// mutex, so it needs to internally check for cancellation/self-destruction
/// while async-awaiting the lock to avoid a deadlock.
interval_miner: Arc<Mutex<Option<IntervalMiner<LoggerErrorT>>>>,
runtime: runtime::Handle,
}
Expand Down

0 comments on commit fa34d1a

Please sign in to comment.