Skip to content

Commit d292922

Browse files
authored
Fix potential deadlock (#40)
1 parent 1f1fa1f commit d292922

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tuktuk-crank-turner/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tuktuk-crank-turner"
3-
version = "0.2.18"
3+
version = "0.2.19"
44
authors.workspace = true
55
edition.workspace = true
66
license.workspace = true

tuktuk-crank-turner/src/task_processor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ impl TimedTask {
3636
&self,
3737
ctx: Arc<TaskContext>,
3838
) -> anyhow::Result<Vec<AddressLookupTableAccount>, tuktuk_sdk::error::Error> {
39-
let mut lookup_tables = ctx.lookup_tables.lock().await;
4039
let mut result: Vec<AddressLookupTableAccount> = Vec::new();
4140
let mut missing_addresses = Vec::new();
4241
let task_queue = self.get_task_queue(ctx.clone()).await?;
42+
let mut lookup_tables = ctx.lookup_tables.lock().await;
4343

4444
// Try to get LUTs from existing map
4545
for addr in &task_queue.lookup_tables {

0 commit comments

Comments
 (0)