Skip to content

Commit cb9e57d

Browse files
committed
Update vss-client to 0.6
Switches vss-client-ng to the crates.io 0.6 release. Generated with OpenAI Codex.
1 parent 010b483 commit cb9e57d

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ async-trait = { version = "0.1", default-features = false }
8282
tokio-postgres = { version = "0.7", default-features = false, features = ["runtime"], optional = true }
8383
native-tls = { version = "0.2", default-features = false, optional = true }
8484
postgres-native-tls = { version = "0.5", default-features = false, features = ["runtime"], optional = true }
85-
vss-client = { package = "vss-client-ng", version = "0.5" }
85+
vss-client = { package = "vss-client-ng", version = "0.6" }
8686
prost = { version = "0.11.6", default-features = false}
8787
#bitcoin-payment-instructions = { version = "0.6" }
8888
bitcoin-payment-instructions = { git = "https://github.com/tnull/bitcoin-payment-instructions", rev = "ff09ce9401afa448549a8f101172700bcd14d7bb" }

src/io/vss_store.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,12 @@ async fn determine_and_write_schema_version(
647647
// The value is not set.
648648
None
649649
},
650+
Err(VssError::VSSVersionMismatchError { version_served, version_expected }) => {
651+
let msg = format!(
652+
"VSS versiion mismatch, expected: {version_expected}, got: {version_served:?}"
653+
);
654+
return Err(Error::new(ErrorKind::Other, msg));
655+
},
650656
Err(e) => {
651657
let msg = format!("Failed to read schema version: {}", e);
652658
return Err(Error::new(ErrorKind::Other, msg));

0 commit comments

Comments
 (0)