Skip to content

Commit

Permalink
fix: fix some compilation problems (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
SupernaviX authored Oct 11, 2024
1 parent ce8189c commit 8b086df
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 71 deletions.
68 changes: 1 addition & 67 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions balius-runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ serde = "1.0.210"
serde_json = "1.0.128"
pallas = "0.30.2"
redb = "2.1.3"
tokio = "1.40.0"
tracing = "0.1.40"
hex = "0.4.3"
itertools = "0.13.0"
Expand Down
7 changes: 4 additions & 3 deletions balius-runtime/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
use pallas::ledger::traverse::MultiEraBlock;
use serde_json::json;
use tokio::sync::Mutex;
use std::{
collections::{HashMap, HashSet},
path::Path,
sync::{Arc, Mutex},
sync::Arc,
};
use thiserror::Error;

Expand Down Expand Up @@ -180,7 +181,7 @@ impl Runtime {

self.loaded
.lock()
.unwrap()
.await
.insert(id.to_owned(), LoadedWorker { store, instance });

Ok(())
Expand All @@ -192,7 +193,7 @@ impl Runtime {
channel: u32,
event: &wit::Event,
) -> Result<wit::Response, Error> {
let mut lock = self.loaded.lock().unwrap();
let mut lock = self.loaded.lock().await;

let worker = lock
.get_mut(worker)
Expand Down
1 change: 1 addition & 0 deletions balius-runtime/tests/u5c.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#![cfg(test)]
#![cfg(feature = "utxorpc")]

use balius_runtime::{ledgers, Runtime, Store};
use serde_json::json;
Expand Down
2 changes: 1 addition & 1 deletion examples/minter/offchain/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ crate-type = ["cdylib"]
[dev-dependencies]
hex = "0.4.3"
serde_json = "1.0.128"
pallas-traverse = { path = "../../../../pallas/pallas-traverse" }
pallas-traverse = "0.30.2"
pallas-codec = "0.30.2"
pallas-primitives = "0.30.2"

0 comments on commit 8b086df

Please sign in to comment.