Skip to content

Commit

Permalink
Merge pull request #2006 from dusk-network/fix-freed-while-in-use
Browse files Browse the repository at this point in the history
Fix "freed while in use"
  • Loading branch information
Eduardo Leegwater Simões authored Jul 23, 2024
2 parents e8c8a3a + fe153fd commit 8e4f1ff
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions node/src/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ impl<N: Network, DB: database::DB, VM: vm::VMExecution>
tokio::select! {
biased;
// Receives results from the upper layer
recv = &mut result_chan.recv() => {
recv = result_chan.recv() => {
match recv? {
Err(ConsensusError::Canceled(round)) => {
info!(event = "consensus canceled", round);
Expand Down Expand Up @@ -186,7 +186,7 @@ impl<N: Network, DB: database::DB, VM: vm::VMExecution>
}
},
// Re-routes messages originated from Consensus (upper) layer to the network layer.
recv = &mut outbound_chan.recv() => {
recv = outbound_chan.recv() => {
let msg = recv?;

// Handle quorum messages from Consensus layer.
Expand Down
2 changes: 1 addition & 1 deletion rusk-prover/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ phoenix-circuits = { version = "0.2.1-rc", optional = true }

[dev-dependencies]
hex = "0.4"
tokio = { version = "1.17.0", features = ["full"] }
tokio = { version = "1", features = ["full"] }
rand = "0.8"

[features]
Expand Down
2 changes: 1 addition & 1 deletion rusk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ name = "rusk"
path = "src/bin/main.rs"

[dependencies]
tokio = { version = "1.15", features = ["rt-multi-thread", "fs", "macros"] }
tokio = { version = "1", features = ["rt-multi-thread", "fs", "macros"] }
futures-util = "0.3"
tracing = "0.1"
tracing-subscriber = { version = "0.3.0", features = [
Expand Down

0 comments on commit 8e4f1ff

Please sign in to comment.