Skip to content

Commit

Permalink
chore: bump 0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Kodylow committed May 9, 2024
1 parent d5b7d2a commit 54073f8
Show file tree
Hide file tree
Showing 9 changed files with 89 additions and 59 deletions.
89 changes: 55 additions & 34 deletions Cargo.lock

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

8 changes: 8 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ license = "MIT"
readme = "README.md"
authors = ["The Fedimint Developers"]

[workspace.dependencies]
fedimint-client = "0.3.1"
fedimint-core = "0.3.1"
fedimint-wallet-client = "0.3.1"
fedimint-mint-client = "0.3.1"
fedimint-ln-client = "0.3.1"
fedimint-rocksdb = "0.3.1"

# Config for 'cargo dist'
[workspace.metadata.dist]
# The preferred cargo-dist version to use in CI (Cargo.toml SemVer syntax)
Expand Down
12 changes: 6 additions & 6 deletions clientd-stateless/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ serde_json = "1.0.108"
tokio = { version = "1.34.0", features = ["full"] }
tracing = "0.1.40"
tracing-subscriber = "0.3.18"
fedimint-client = "0.3.0"
fedimint-core = "0.3.0"
fedimint-wallet-client = "0.3.0"
fedimint-mint-client = "0.3.0"
fedimint-ln-client = "0.3.0"
fedimint-rocksdb = "0.3.0"
fedimint-client = { workspace = true }
fedimint-core = { workspace = true }
fedimint-wallet-client = { workspace = true }
fedimint-mint-client = { workspace = true }
fedimint-ln-client = { workspace = true }
fedimint-rocksdb = { workspace = true }
url = "2.5.0"
lazy_static = "1.4.0"
async-utility = "0.2.0"
Expand Down
2 changes: 1 addition & 1 deletion clientd-stateless/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub struct AppState {
impl AppState {
pub async fn new(fm_db_path: PathBuf) -> Result<Self> {
let clients = MultiMint::new(fm_db_path).await?;
clients.update_gateway_caches(true).await?;
clients.update_gateway_caches().await?;
Ok(Self { multimint: clients })
}

Expand Down
12 changes: 6 additions & 6 deletions fedimint-clientd/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ serde_json = "1.0.108"
tokio = { version = "1.34.0", features = ["full"] }
tracing = "0.1.40"
tracing-subscriber = "0.3.18"
fedimint-client = "0.3.0"
fedimint-core = "0.3.0"
fedimint-wallet-client = "0.3.0"
fedimint-mint-client = "0.3.0"
fedimint-ln-client = "0.3.0"
fedimint-rocksdb = "0.3.0"
fedimint-client = { workspace = true }
fedimint-core = { workspace = true }
fedimint-wallet-client = { workspace = true }
fedimint-mint-client = { workspace = true }
fedimint-ln-client = { workspace = true }
fedimint-rocksdb = { workspace = true }
url = "2.5.0"
lazy_static = "1.4.0"
async-utility = "0.2.0"
Expand Down
2 changes: 1 addition & 1 deletion fedimint-clientd/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub struct AppState {
impl AppState {
pub async fn new(fm_db_path: PathBuf) -> Result<Self> {
let clients = MultiMint::new(fm_db_path).await?;
clients.update_gateway_caches(true).await?;
clients.update_gateway_caches().await?;
Ok(Self { multimint: clients })
}

Expand Down
7 changes: 4 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@
flake-utils.url = "github:numtide/flake-utils";

fedimint = {
url =
"github:fedimint/fedimint?rev=a41e3a7e31ce0f26058206a04f1cd49ef2b12fe3";
url = ''
github:fedimint/fedimint?rev=dbabb5f44de5401d24ca9414534a36a22e89c6df
'';
};
};

Expand All @@ -43,7 +44,7 @@

toolchainArgs = let llvmPackages = pkgs.llvmPackages_11;
in {
extraRustFlags = "--cfg tokio_unstable";
# extraRustFlags = "--cfg tokio_unstable";

components = [ "rustc" "cargo" "clippy" "rust-analyzer" "rust-src" ];

Expand Down
12 changes: 6 additions & 6 deletions multimint/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ authors.workspace = true
path = "src/lib.rs"

[dependencies]
fedimint-client = { workspace = true }
anyhow = "1.0.75"
serde = "1.0.193"
serde_json = "1.0.108"
tokio = { version = "1.34.0", features = ["full"] }
fedimint-client = "0.3.0"
fedimint-core = "0.3.0"
fedimint-wallet-client = "0.3.0"
fedimint-mint-client = "0.3.0"
fedimint-ln-client = "0.3.0"
fedimint-rocksdb = "0.3.0"
fedimint-core = { workspace = true }
fedimint-wallet-client = { workspace = true }
fedimint-mint-client = { workspace = true }
fedimint-ln-client = { workspace = true }
fedimint-rocksdb = { workspace = true }
futures-util = "0.3.30"
rand = "0.8.5"
tracing = "0.1.40"
Expand Down
4 changes: 2 additions & 2 deletions multimint/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -367,12 +367,12 @@ impl MultiMint {

/// Update the gateway caches for all the lightning modules in the
/// multimint.
pub async fn update_gateway_caches(&self, apply_meta: bool) -> Result<()> {
pub async fn update_gateway_caches(&self) -> Result<()> {
let clients = self.clients.lock().await;

for (_, client) in clients.iter() {
let lightning_client = client.get_first_module::<LightningClientModule>();
lightning_client.update_gateway_cache(apply_meta).await?;
lightning_client.update_gateway_cache().await?;
}

Ok(())
Expand Down

0 comments on commit 54073f8

Please sign in to comment.