Skip to content

Commit

Permalink
Fix upgrade lock in network task (#3580)
Browse files Browse the repository at this point in the history
  • Loading branch information
ss-es authored Aug 15, 2024
1 parent a886d3b commit 3ded7f9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crates/hotshot/src/tasks/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ use vbs::version::StaticVersionType;
use crate::{
tasks::task_state::CreateTaskState, types::SystemContextHandle, ConsensusApi,
ConsensusMetricsValue, ConsensusTaskRegistry, HotShotConfig, HotShotInitializer,
MarketplaceConfig, Memberships, NetworkTaskRegistry, SignatureKey, SystemContext, UpgradeLock,
Versions,
MarketplaceConfig, Memberships, NetworkTaskRegistry, SignatureKey, SystemContext, Versions,
};

/// event for global event stream
Expand Down Expand Up @@ -193,7 +192,7 @@ pub fn add_network_event_task<
membership,
filter,
storage: Arc::clone(&handle.storage()),
upgrade_lock: UpgradeLock::new(),
upgrade_lock: handle.hotshot.upgrade_lock.clone(),
};
let task = Task::new(
network_state,
Expand Down

0 comments on commit 3ded7f9

Please sign in to comment.