Skip to content

Commit

Permalink
derive tracing Value impl for TaskExecution stuck on TssId but will b…
Browse files Browse the repository at this point in the history
…e resolved once
  • Loading branch information
4meta5 committed Jul 4, 2024
1 parent 2600863 commit f9e7189
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 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 chronicle/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion chronicle/src/shards/tss.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<TssId>;

Expand All @@ -23,7 +24,7 @@ pub enum Tss {
Disabled(SigningKey, Option<TssAction>, bool),
}

#[derive(Clone, Eq, PartialEq, Ord, PartialOrd)]
#[derive(Clone, Eq, PartialEq, Ord, PartialOrd, Valuable)]
pub struct TssPeerId(PeerId);

Check failure on line 28 in chronicle/src/shards/tss.rs

View workflow job for this annotation

GitHub Actions / test-cargo (check, try-runtime)

error[E0599]: the method `committed` exists for reference `&Tss<TssId, TssPeerId>`, but its trait bounds were not satisfied --> chronicle/src/shards/tss.rs:103:30 | 28 | pub struct TssPeerId(PeerId); | -------------------- doesn't satisfy `TssPeerId: tracing::Value` or `TssPeerId: tracing_core::sealed::Sealed` ... 103 | Self::Enabled(tss) => tss.committed(), | ^^^^^^^^^ private field, not a method | ::: /home/runner-1/runner/_work/timechain/timechain/primitives/src/shard.rs:25:1 | 25 | pub struct TssId { | ---------------- doesn't satisfy `TssId: tracing::Value` or `TssId: tracing_core::sealed::Sealed` | = note: the following trait bounds were not satisfied: `TssId: tracing::Value` `TssId: tracing_core::sealed::Sealed` which is required by `TssId: tracing::Value` `TssPeerId: tracing::Value` `TssPeerId: tracing_core::sealed::Sealed` which is required by `TssPeerId: tracing::Value` note: the traits `tracing::Value` and `tracing_core::sealed::Sealed` must be implemented --> /home/runner-1/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-core-0.1.32/src/lib.rs:292:5 | 292 | pub trait Sealed {} | ^^^^^^^^^^^^^^^^ | ::: /home/runner-1/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-core-0.1.32/src/field.rs:336:1 | 336 | pub trait Value: crate::sealed::Sealed { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Check failure on line 28 in chronicle/src/shards/tss.rs

View workflow job for this annotation

GitHub Actions / test-cargo (check, try-runtime)

error[E0599]: the method `on_commit` exists for mutable reference `&mut Tss<TssId, TssPeerId>`, but its trait bounds were not satisfied --> chronicle/src/shards/tss.rs:110:30 | 28 | pub struct TssPeerId(PeerId); | -------------------- doesn't satisfy `TssPeerId: tracing::Value` or `TssPeerId: tracing_core::sealed::Sealed` ... 110 | Self::Enabled(tss) => tss.on_commit(commitment), | ^^^^^^^^^ method cannot be called on `&mut Tss<TssId, TssPeerId>` due to unsatisfied trait bounds | ::: /home/runner-1/runner/_work/timechain/timechain/primitives/src/shard.rs:25:1 | 25 | pub struct TssId { | ---------------- doesn't satisfy `TssId: tracing::Value` or `TssId: tracing_core::sealed::Sealed` | = note: the following trait bounds were not satisfied: `TssId: tracing::Value` `TssId: tracing_core::sealed::Sealed` which is required by `TssId: tracing::Value` `TssPeerId: tracing::Value` `TssPeerId: tracing_core::sealed::Sealed` which is required by `TssPeerId: tracing::Value` note: the traits `tracing::Value` and `tracing_core::sealed::Sealed` must be implemented --> /home/runner-1/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-core-0.1.32/src/lib.rs:292:5 | 292 | pub trait Sealed {} | ^^^^^^^^^^^^^^^^ | ::: /home/runner-1/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-core-0.1.32/src/field.rs:336:1 | 336 | pub trait Value: crate::sealed::Sealed { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Check failure on line 28 in chronicle/src/shards/tss.rs

View workflow job for this annotation

GitHub Actions / test-cargo (check, try-runtime)

error[E0599]: the method `on_start` exists for mutable reference `&mut Tss<TssId, TssPeerId>`, but its trait bounds were not satisfied --> chronicle/src/shards/tss.rs:120:30 | 28 | pub struct TssPeerId(PeerId); | -------------------- doesn't satisfy `TssPeerId: tracing::Value` or `TssPeerId: tracing_core::sealed::Sealed` ... 120 | Self::Enabled(tss) => tss.on_start(request_id), | ^^^^^^^^ method cannot be called on `&mut Tss<TssId, TssPeerId>` due to unsatisfied trait bounds | ::: /home/runner-1/runner/_work/timechain/timechain/primitives/src/shard.rs:25:1 | 25 | pub struct TssId { | ---------------- doesn't satisfy `TssId: tracing::Value` or `TssId: tracing_core::sealed::Sealed` | = note: the following trait bounds were not satisfied: `TssId: tracing::Value` `TssId: tracing_core::sealed::Sealed` which is required by `TssId: tracing::Value` `TssPeerId: tracing::Value` `TssPeerId: tracing_core::sealed::Sealed` which is required by `TssPeerId: tracing::Value` note: the traits `tracing::Value` and `tracing_core::sealed::Sealed` must be implemented --> /home/runner-1/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-core-0.1.32/src/lib.rs:292:5 | 292 | pub trait Sealed {} | ^^^^^^^^^^^^^^^^ | ::: /home/runner-1/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-core-0.1.32/src/field.rs:336:1 | 336 | pub trait Value: crate::sealed::Sealed { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Check failure on line 28 in chronicle/src/shards/tss.rs

View workflow job for this annotation

GitHub Actions / build-docs

error[E0599]: the method `committed` exists for reference `&Tss<TssId, TssPeerId>`, but its trait bounds were not satisfied --> chronicle/src/shards/tss.rs:103:30 | 28 | pub struct TssPeerId(PeerId); | -------------------- doesn't satisfy `TssPeerId: tracing::Value` or `TssPeerId: tracing_core::sealed::Sealed` ... 103 | Self::Enabled(tss) => tss.committed(), | ^^^^^^^^^ private field, not a method | ::: /home/runner-0/runner/_work/timechain/timechain/primitives/src/shard.rs:25:1 | 25 | pub struct TssId { | ---------------- doesn't satisfy `TssId: tracing::Value` or `TssId: tracing_core::sealed::Sealed` | = note: the following trait bounds were not satisfied: `TssId: tracing::Value` `TssId: tracing_core::sealed::Sealed` which is required by `TssId: tracing::Value` `TssPeerId: tracing::Value` `TssPeerId: tracing_core::sealed::Sealed` which is required by `TssPeerId: tracing::Value` note: the traits `tracing::Value` and `tracing_core::sealed::Sealed` must be implemented --> /home/runner-0/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-core-0.1.32/src/lib.rs:292:5 | 292 | pub trait Sealed {} | ^^^^^^^^^^^^^^^^ | ::: /home/runner-0/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-core-0.1.32/src/field.rs:336:1 | 336 | pub trait Value: crate::sealed::Sealed { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Check failure on line 28 in chronicle/src/shards/tss.rs

View workflow job for this annotation

GitHub Actions / build-docs

error[E0599]: the method `on_commit` exists for mutable reference `&mut Tss<TssId, TssPeerId>`, but its trait bounds were not satisfied --> chronicle/src/shards/tss.rs:110:30 | 28 | pub struct TssPeerId(PeerId); | -------------------- doesn't satisfy `TssPeerId: tracing::Value` or `TssPeerId: tracing_core::sealed::Sealed` ... 110 | Self::Enabled(tss) => tss.on_commit(commitment), | ^^^^^^^^^ method cannot be called on `&mut Tss<TssId, TssPeerId>` due to unsatisfied trait bounds | ::: /home/runner-0/runner/_work/timechain/timechain/primitives/src/shard.rs:25:1 | 25 | pub struct TssId { | ---------------- doesn't satisfy `TssId: tracing::Value` or `TssId: tracing_core::sealed::Sealed` | = note: the following trait bounds were not satisfied: `TssId: tracing::Value` `TssId: tracing_core::sealed::Sealed` which is required by `TssId: tracing::Value` `TssPeerId: tracing::Value` `TssPeerId: tracing_core::sealed::Sealed` which is required by `TssPeerId: tracing::Value` note: the traits `tracing::Value` and `tracing_core::sealed::Sealed` must be implemented --> /home/runner-0/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-core-0.1.32/src/lib.rs:292:5 | 292 | pub trait Sealed {} | ^^^^^^^^^^^^^^^^ | ::: /home/runner-0/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-core-0.1.32/src/field.rs:336:1 | 336 | pub trait Value: crate::sealed::Sealed { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Check failure on line 28 in chronicle/src/shards/tss.rs

View workflow job for this annotation

GitHub Actions / build-docs

error[E0599]: the method `on_start` exists for mutable reference `&mut Tss<TssId, TssPeerId>`, but its trait bounds were not satisfied --> chronicle/src/shards/tss.rs:120:30 | 28 | pub struct TssPeerId(PeerId); | -------------------- doesn't satisfy `TssPeerId: tracing::Value` or `TssPeerId: tracing_core::sealed::Sealed` ... 120 | Self::Enabled(tss) => tss.on_start(request_id), | ^^^^^^^^ method cannot be called on `&mut Tss<TssId, TssPeerId>` due to unsatisfied trait bounds | ::: /home/runner-0/runner/_work/timechain/timechain/primitives/src/shard.rs:25:1 | 25 | pub struct TssId { | ---------------- doesn't satisfy `TssId: tracing::Value` or `TssId: tracing_core::sealed::Sealed` | = note: the following trait bounds were not satisfied: `TssId: tracing::Value` `TssId: tracing_core::sealed::Sealed` which is required by `TssId: tracing::Value` `TssPeerId: tracing::Value` `TssPeerId: tracing_core::sealed::Sealed` which is required by `TssPeerId: tracing::Value` note: the traits `tracing::Value` and `tracing_core::sealed::Sealed` must be implemented --> /home/runner-0/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-core-0.1.32/src/lib.rs:292:5 | 292 | pub trait Sealed {} | ^^^^^^^^^^^^^^^^ | ::: /home/runner-0/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-core-0.1.32/src/field.rs:336:1 | 336 | pub trait Value: crate::sealed::Sealed { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Check failure on line 28 in chronicle/src/shards/tss.rs

View workflow job for this annotation

GitHub Actions / test-cargo (check, runtime-benchmarks)

error[E0599]: the method `committed` exists for reference `&Tss<TssId, TssPeerId>`, but its trait bounds were not satisfied --> chronicle/src/shards/tss.rs:103:30 | 28 | pub struct TssPeerId(PeerId); | -------------------- doesn't satisfy `TssPeerId: tracing::Value` or `TssPeerId: tracing_core::sealed::Sealed` ... 103 | Self::Enabled(tss) => tss.committed(), | ^^^^^^^^^ private field, not a method | ::: /home/runner-2/runner/_work/timechain/timechain/primitives/src/shard.rs:25:1 | 25 | pub struct TssId { | ---------------- doesn't satisfy `TssId: tracing::Value` or `TssId: tracing_core::sealed::Sealed` | = note: the following trait bounds were not satisfied: `TssId: tracing::Value` `TssId: tracing_core::sealed::Sealed` which is required by `TssId: tracing::Value` `TssPeerId: tracing::Value` `TssPeerId: tracing_core::sealed::Sealed` which is required by `TssPeerId: tracing::Value` note: the traits `tracing::Value` and `tracing_core::sealed::Sealed` must be implemented --> /home/runner-2/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-core-0.1.32/src/lib.rs:292:5 | 292 | pub trait Sealed {} | ^^^^^^^^^^^^^^^^ | ::: /home/runner-2/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-core-0.1.32/src/field.rs:336:1 | 336 | pub trait Value: crate::sealed::Sealed { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Check failure on line 28 in chronicle/src/shards/tss.rs

View workflow job for this annotation

GitHub Actions / test-cargo (check, runtime-benchmarks)

error[E0599]: the method `on_commit` exists for mutable reference `&mut Tss<TssId, TssPeerId>`, but its trait bounds were not satisfied --> chronicle/src/shards/tss.rs:110:30 | 28 | pub struct TssPeerId(PeerId); | -------------------- doesn't satisfy `TssPeerId: tracing::Value` or `TssPeerId: tracing_core::sealed::Sealed` ... 110 | Self::Enabled(tss) => tss.on_commit(commitment), | ^^^^^^^^^ method cannot be called on `&mut Tss<TssId, TssPeerId>` due to unsatisfied trait bounds | ::: /home/runner-2/runner/_work/timechain/timechain/primitives/src/shard.rs:25:1 | 25 | pub struct TssId { | ---------------- doesn't satisfy `TssId: tracing::Value` or `TssId: tracing_core::sealed::Sealed` | = note: the following trait bounds were not satisfied: `TssId: tracing::Value` `TssId: tracing_core::sealed::Sealed` which is required by `TssId: tracing::Value` `TssPeerId: tracing::Value` `TssPeerId: tracing_core::sealed::Sealed` which is required by `TssPeerId: tracing::Value` note: the traits `tracing::Value` and `tracing_core::sealed::Sealed` must be implemented --> /home/runner-2/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-core-0.1.32/src/lib.rs:292:5 | 292 | pub trait Sealed {} | ^^^^^^^^^^^^^^^^ | ::: /home/runner-2/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-core-0.1.32/src/field.rs:336:1 | 336 | pub trait Value: crate::sealed::Sealed { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Check failure on line 28 in chronicle/src/shards/tss.rs

View workflow job for this annotation

GitHub Actions / test-cargo (check, runtime-benchmarks)

error[E0599]: the method `on_start` exists for mutable reference `&mut Tss<TssId, TssPeerId>`, but its trait bounds were not satisfied --> chronicle/src/shards/tss.rs:120:30 | 28 | pub struct TssPeerId(PeerId); | -------------------- doesn't satisfy `TssPeerId: tracing::Value` or `TssPeerId: tracing_core::sealed::Sealed` ... 120 | Self::Enabled(tss) => tss.on_start(request_id), | ^^^^^^^^ method cannot be called on `&mut Tss<TssId, TssPeerId>` due to unsatisfied trait bounds | ::: /home/runner-2/runner/_work/timechain/timechain/primitives/src/shard.rs:25:1 | 25 | pub struct TssId { | ---------------- doesn't satisfy `TssId: tracing::Value` or `TssId: tracing_core::sealed::Sealed` | = note: the following trait bounds were not satisfied: `TssId: tracing::Value` `TssId: tracing_core::sealed::Sealed` which is required by `TssId: tracing::Value` `TssPeerId: tracing::Value` `TssPeerId: tracing_core::sealed::Sealed` which is required by `TssPeerId: tracing::Value` note: the traits `tracing::Value` and `tracing_core::sealed::Sealed` must be implemented --> /home/runner-2/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-core-0.1.32/src/lib.rs:292:5 | 292 | pub trait Sealed {} | ^^^^^^^^^^^^^^^^ | ::: /home/runner-2/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-core-0.1.32/src/field.rs:336:1 | 336 | pub trait Value: crate::sealed::Sealed { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Check failure on line 28 in chronicle/src/shards/tss.rs

View workflow job for this annotation

GitHub Actions / build-chronicle (testnet)

error[E0599]: the method `committed` exists for reference `&Tss<TssId, TssPeerId>`, but its trait bounds were not satisfied --> chronicle/src/shards/tss.rs:103:30 | 28 | pub struct TssPeerId(PeerId); | -------------------- doesn't satisfy `TssPeerId: tracing::Value` or `TssPeerId: tracing_core::sealed::Sealed` ... 103 | Self::Enabled(tss) => tss.committed(), | ^^^^^^^^^ private field, not a method | ::: /home/runner-2/runner/_work/timechain/timechain/primitives/src/shard.rs:25:1 | 25 | pub struct TssId { | ---------------- doesn't satisfy `TssId: tracing::Value` or `TssId: tracing_core::sealed::Sealed` | = note: the following trait bounds were not satisfied: `TssId: tracing::Value` `TssId: tracing_core::sealed::Sealed` which is required by `TssId: tracing::Value` `TssPeerId: tracing::Value` `TssPeerId: tracing_core::sealed::Sealed` which is required by `TssPeerId: tracing::Value` note: the traits `tracing::Value` and `tracing_core::sealed::Sealed` must be implemented --> /home/runner-2/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-core-0.1.32/src/lib.rs:292:5 | 292 | pub trait Sealed {} | ^^^^^^^^^^^^^^^^ | ::: /home/runner-2/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-core-0.1.32/src/field.rs:336:1 | 336 | pub trait Value: crate::sealed::Sealed { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Check failure on line 28 in chronicle/src/shards/tss.rs

View workflow job for this annotation

GitHub Actions / build-chronicle (testnet)

error[E0599]: the method `on_commit` exists for mutable reference `&mut Tss<TssId, TssPeerId>`, but its trait bounds were not satisfied --> chronicle/src/shards/tss.rs:110:30 | 28 | pub struct TssPeerId(PeerId); | -------------------- doesn't satisfy `TssPeerId: tracing::Value` or `TssPeerId: tracing_core::sealed::Sealed` ... 110 | Self::Enabled(tss) => tss.on_commit(commitment), | ^^^^^^^^^ method cannot be called on `&mut Tss<TssId, TssPeerId>` due to unsatisfied trait bounds | ::: /home/runner-2/runner/_work/timechain/timechain/primitives/src/shard.rs:25:1 | 25 | pub struct TssId { | ---------------- doesn't satisfy `TssId: tracing::Value` or `TssId: tracing_core::sealed::Sealed` | = note: the following trait bounds were not satisfied: `TssId: tracing::Value` `TssId: tracing_core::sealed::Sealed` which is required by `TssId: tracing::Value` `TssPeerId: tracing::Value` `TssPeerId: tracing_core::sealed::Sealed` which is required by `TssPeerId: tracing::Value` note: the traits `tracing::Value` and `tracing_core::sealed::Sealed` must be implemented --> /home/runner-2/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-core-0.1.32/src/lib.rs:292:5 | 292 | pub trait Sealed {} | ^^^^^^^^^^^^^^^^ | ::: /home/runner-2/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-core-0.1.32/src/field.rs:336:1 | 336 | pub trait Value: crate::sealed::Sealed { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Check failure on line 28 in chronicle/src/shards/tss.rs

View workflow job for this annotation

GitHub Actions / build-chronicle (testnet)

error[E0599]: the method `on_start` exists for mutable reference `&mut Tss<TssId, TssPeerId>`, but its trait bounds were not satisfied --> chronicle/src/shards/tss.rs:120:30 | 28 | pub struct TssPeerId(PeerId); | -------------------- doesn't satisfy `TssPeerId: tracing::Value` or `TssPeerId: tracing_core::sealed::Sealed` ... 120 | Self::Enabled(tss) => tss.on_start(request_id), | ^^^^^^^^ method cannot be called on `&mut Tss<TssId, TssPeerId>` due to unsatisfied trait bounds | ::: /home/runner-2/runner/_work/timechain/timechain/primitives/src/shard.rs:25:1 | 25 | pub struct TssId { | ---------------- doesn't satisfy `TssId: tracing::Value` or `TssId: tracing_core::sealed::Sealed` | = note: the following trait bounds were not satisfied: `TssId: tracing::Value` `TssId: tracing_core::sealed::Sealed` which is required by `TssId: tracing::Value` `TssPeerId: tracing::Value` `TssPeerId: tracing_core::sealed::Sealed` which is required by `TssPeerId: tracing::Value` note: the traits `tracing::Value` and `tracing_core::sealed::Sealed` must be implemented --> /home/runner-2/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-core-0.1.32/src/lib.rs:292:5 | 292 | pub trait Sealed {} | ^^^^^^^^^^^^^^^^ | ::: /home/runner-2/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-core-0.1.32/src/field.rs:336:1 | 336 | pub trait Value: crate::sealed::Sealed { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Check failure on line 28 in chronicle/src/shards/tss.rs

View workflow job for this annotation

GitHub Actions / build-chronicle (production)

error[E0599]: the method `committed` exists for reference `&Tss<TssId, TssPeerId>`, but its trait bounds were not satisfied --> chronicle/src/shards/tss.rs:103:30 | 28 | pub struct TssPeerId(PeerId); | -------------------- doesn't satisfy `TssPeerId: tracing::Value` or `TssPeerId: tracing_core::sealed::Sealed` ... 103 | Self::Enabled(tss) => tss.committed(), | ^^^^^^^^^ private field, not a method | ::: /home/runner-1/runner/_work/timechain/timechain/primitives/src/shard.rs:25:1 | 25 | pub struct TssId { | ---------------- doesn't satisfy `TssId: tracing::Value` or `TssId: tracing_core::sealed::Sealed` | = note: the following trait bounds were not satisfied: `TssId: tracing::Value` `TssId: tracing_core::sealed::Sealed` which is required by `TssId: tracing::Value` `TssPeerId: tracing::Value` `TssPeerId: tracing_core::sealed::Sealed` which is required by `TssPeerId: tracing::Value` note: the traits `tracing::Value` and `tracing_core::sealed::Sealed` must be implemented --> /home/runner-1/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-core-0.1.32/src/lib.rs:292:5 | 292 | pub trait Sealed {} | ^^^^^^^^^^^^^^^^ | ::: /home/runner-1/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-core-0.1.32/src/field.rs:336:1 | 336 | pub trait Value: crate::sealed::Sealed { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Check failure on line 28 in chronicle/src/shards/tss.rs

View workflow job for this annotation

GitHub Actions / build-chronicle (production)

error[E0599]: the method `on_commit` exists for mutable reference `&mut Tss<TssId, TssPeerId>`, but its trait bounds were not satisfied --> chronicle/src/shards/tss.rs:110:30 | 28 | pub struct TssPeerId(PeerId); | -------------------- doesn't satisfy `TssPeerId: tracing::Value` or `TssPeerId: tracing_core::sealed::Sealed` ... 110 | Self::Enabled(tss) => tss.on_commit(commitment), | ^^^^^^^^^ method cannot be called on `&mut Tss<TssId, TssPeerId>` due to unsatisfied trait bounds | ::: /home/runner-1/runner/_work/timechain/timechain/primitives/src/shard.rs:25:1 | 25 | pub struct TssId { | ---------------- doesn't satisfy `TssId: tracing::Value` or `TssId: tracing_core::sealed::Sealed` | = note: the following trait bounds were not satisfied: `TssId: tracing::Value` `TssId: tracing_core::sealed::Sealed` which is required by `TssId: tracing::Value` `TssPeerId: tracing::Value` `TssPeerId: tracing_core::sealed::Sealed` which is required by `TssPeerId: tracing::Value` note: the traits `tracing::Value` and `tracing_core::sealed::Sealed` must be implemented --> /home/runner-1/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-core-0.1.32/src/lib.rs:292:5 | 292 | pub trait Sealed {} | ^^^^^^^^^^^^^^^^ | ::: /home/runner-1/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-core-0.1.32/src/field.rs:336:1 | 336 | pub trait Value: crate::sealed::Sealed { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Check failure on line 28 in chronicle/src/shards/tss.rs

View workflow job for this annotation

GitHub Actions / build-chronicle (production)

error[E0599]: the method `on_start` exists for mutable reference `&mut Tss<TssId, TssPeerId>`, but its trait bounds were not satisfied --> chronicle/src/shards/tss.rs:120:30 | 28 | pub struct TssPeerId(PeerId); | -------------------- doesn't satisfy `TssPeerId: tracing::Value` or `TssPeerId: tracing_core::sealed::Sealed` ... 120 | Self::Enabled(tss) => tss.on_start(request_id), | ^^^^^^^^ method cannot be called on `&mut Tss<TssId, TssPeerId>` due to unsatisfied trait bounds | ::: /home/runner-1/runner/_work/timechain/timechain/primitives/src/shard.rs:25:1 | 25 | pub struct TssId { | ---------------- doesn't satisfy `TssId: tracing::Value` or `TssId: tracing_core::sealed::Sealed` | = note: the following trait bounds were not satisfied: `TssId: tracing::Value` `TssId: tracing_core::sealed::Sealed` which is required by `TssId: tracing::Value` `TssPeerId: tracing::Value` `TssPeerId: tracing_core::sealed::Sealed` which is required by `TssPeerId: tracing::Value` note: the traits `tracing::Value` and `tracing_core::sealed::Sealed` must be implemented --> /home/runner-1/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-core-0.1.32/src/lib.rs:292:5 | 292 | pub trait Sealed {} | ^^^^^^^^^^^^^^^^ | ::: /home/runner-1/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-core-0.1.32/src/field.rs:336:1 | 336 | pub trait Value: crate::sealed::Sealed { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Check failure on line 28 in chronicle/src/shards/tss.rs

View workflow job for this annotation

GitHub Actions / test-cargo (test, --workspace --locked)

error[E0599]: the method `committed` exists for reference `&Tss<TssId, TssPeerId>`, but its trait bounds were not satisfied --> chronicle/src/shards/tss.rs:103:30 | 28 | pub struct TssPeerId(PeerId); | -------------------- doesn't satisfy `TssPeerId: tracing::Value` or `TssPeerId: tracing_core::sealed::Sealed` ... 103 | Self::Enabled(tss) => tss.committed(), | ^^^^^^^^^ private field, not a method | ::: /home/runner-3/runner/_work/timechain/timechain/primitives/src/shard.rs:25:1 | 25 | pub struct TssId { | ---------------- doesn't satisfy `TssId: tracing::Value` or `TssId: tracing_core::sealed::Sealed` | = note: the following trait bounds were not satisfied: `TssId: tracing::Value` `TssId: tracing_core::sealed::Sealed` which is required by `TssId: tracing::Value` `TssPeerId: tracing::Value` `TssPeerId: tracing_core::sealed::Sealed` which is required by `TssPeerId: tracing::Value` note: the traits `tracing::Value` and `tracing_core::sealed::Sealed` must be implemented --> /home/runner-3/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-core-0.1.32/src/lib.rs:292:5 | 292 | pub trait Sealed {} | ^^^^^^^^^^^^^^^^ | ::: /home/runner-3/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-core-0.1.32/src/field.rs:336:1 | 336 | pub trait Value: crate::sealed::Sealed { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Check failure on line 28 in chronicle/src/shards/tss.rs

View workflow job for this annotation

GitHub Actions / test-cargo (test, --workspace --locked)

error[E0599]: the method `on_commit` exists for mutable reference `&mut Tss<TssId, TssPeerId>`, but its trait bounds were not satisfied --> chronicle/src/shards/tss.rs:110:30 | 28 | pub struct TssPeerId(PeerId); | -------------------- doesn't satisfy `TssPeerId: tracing::Value` or `TssPeerId: tracing_core::sealed::Sealed` ... 110 | Self::Enabled(tss) => tss.on_commit(commitment), | ^^^^^^^^^ method cannot be called on `&mut Tss<TssId, TssPeerId>` due to unsatisfied trait bounds | ::: /home/runner-3/runner/_work/timechain/timechain/primitives/src/shard.rs:25:1 | 25 | pub struct TssId { | ---------------- doesn't satisfy `TssId: tracing::Value` or `TssId: tracing_core::sealed::Sealed` | = note: the following trait bounds were not satisfied: `TssId: tracing::Value` `TssId: tracing_core::sealed::Sealed` which is required by `TssId: tracing::Value` `TssPeerId: tracing::Value` `TssPeerId: tracing_core::sealed::Sealed` which is required by `TssPeerId: tracing::Value` note: the traits `tracing::Value` and `tracing_core::sealed::Sealed` must be implemented --> /home/runner-3/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-core-0.1.32/src/lib.rs:292:5 | 292 | pub trait Sealed {} | ^^^^^^^^^^^^^^^^ | ::: /home/runner-3/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-core-0.1.32/src/field.rs:336:1 | 336 | pub trait Value: crate::sealed::Sealed { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Check failure on line 28 in chronicle/src/shards/tss.rs

View workflow job for this annotation

GitHub Actions / test-cargo (test, --workspace --locked)

error[E0599]: the method `on_start` exists for mutable reference `&mut Tss<TssId, TssPeerId>`, but its trait bounds were not satisfied --> chronicle/src/shards/tss.rs:120:30 | 28 | pub struct TssPeerId(PeerId); | -------------------- doesn't satisfy `TssPeerId: tracing::Value` or `TssPeerId: tracing_core::sealed::Sealed` ... 120 | Self::Enabled(tss) => tss.on_start(request_id), | ^^^^^^^^ method cannot be called on `&mut Tss<TssId, TssPeerId>` due to unsatisfied trait bounds | ::: /home/runner-3/runner/_work/timechain/timechain/primitives/src/shard.rs:25:1 | 25 | pub struct TssId { | ---------------- doesn't satisfy `TssId: tracing::Value` or `TssId: tracing_core::sealed::Sealed` | = note: the following trait bounds were not satisfied: `TssId: tracing::Value` `TssId: tracing_core::sealed::Sealed` which is required by `TssId: tracing::Value` `TssPeerId: tracing::Value` `TssPeerId: tracing_core::sealed::Sealed` which is required by `TssPeerId: tracing::Value` note: the traits `tracing::Value` and `tracing_core::sealed::Sealed` must be implemented --> /home/runner-3/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-core-0.1.32/src/lib.rs:292:5 | 292 | pub trait Sealed {} | ^^^^^^^^^^^^^^^^ | ::: /home/runner-3/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-core-0.1.32/src/field.rs:336:1 | 336 | pub trait Value: crate::sealed::Sealed { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

impl TssPeerId {
Expand Down

0 comments on commit f9e7189

Please sign in to comment.