From f9e71892d118568662ef5df1d722ec7ce308cdc9 Mon Sep 17 00:00:00 2001 From: 4meta5 Date: Wed, 3 Jul 2024 21:03:53 -0400 Subject: [PATCH] derive tracing Value impl for TaskExecution stuck on TssId but will be resolved once --- Cargo.lock | 1 + chronicle/Cargo.toml | 1 + chronicle/src/shards/tss.rs | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index c69e3843a..333437c33 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2301,6 +2301,7 @@ dependencies = [ "tracing-panic", "tracing-subscriber 0.3.18", "tss", + "valuable", ] [[package]] diff --git a/chronicle/Cargo.toml b/chronicle/Cargo.toml index c212552d0..38c9c3897 100644 --- a/chronicle/Cargo.toml +++ b/chronicle/Cargo.toml @@ -20,6 +20,7 @@ serde.workspace = true serde_json.workspace = true tokio.workspace = true tracing.workspace = true +valuable.workspace = true rosetta-client.workspace = true rosetta-core.workspace = true diff --git a/chronicle/src/shards/tss.rs b/chronicle/src/shards/tss.rs index c7c9eee3b..e89d86884 100644 --- a/chronicle/src/shards/tss.rs +++ b/chronicle/src/shards/tss.rs @@ -7,6 +7,7 @@ pub use time_primitives::TssId; pub use tss::{ ProofOfKnowledge, Signature, SigningKey, VerifiableSecretSharingCommitment, VerifyingKey, }; +use valuable::Valuable; pub type TssMessage = tss::TssMessage; @@ -23,7 +24,7 @@ pub enum Tss { Disabled(SigningKey, Option, bool), } -#[derive(Clone, Eq, PartialEq, Ord, PartialOrd)] +#[derive(Clone, Eq, PartialEq, Ord, PartialOrd, Valuable)] pub struct TssPeerId(PeerId); impl TssPeerId {