diff --git a/Cargo.lock b/Cargo.lock index 79b6b94414..cdf267b3f8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2653,6 +2653,7 @@ dependencies = [ "tiny-keccak", "tokio", "tokio-stream", + "tokio-util 0.7.10", "toml 0.8.12", "tonic", "tracing", diff --git a/Cargo.toml b/Cargo.toml index 603983b039..1e9144acad 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -131,6 +131,7 @@ tiny-bip39 = "1.0.0" tiny-keccak = { version = "2.0.2", default-features = false } tokio = "1.3" tokio-stream = "0.1.14" +tokio-util = { version = "0.7" } toml = "0.8.8" tonic = "0.10" tracing = { version = "0.1.36", default-features = false } diff --git a/crates/relayer/Cargo.toml b/crates/relayer/Cargo.toml index 0c76a30099..0d83367c8b 100644 --- a/crates/relayer/Cargo.toml +++ b/crates/relayer/Cargo.toml @@ -98,6 +98,7 @@ tiny-bip39 = { workspace = true } tiny-keccak = { workspace = true, features = ["keccak"] } tokio = { workspace = true, features = ["rt-multi-thread", "time", "sync"] } tokio-stream = { workspace = true } +tokio-util = { workspace = true } toml = { workspace = true } tonic = { workspace = true, features = ["tls", "tls-roots"] } tracing = { workspace = true } diff --git a/crates/relayer/src/config.rs b/crates/relayer/src/config.rs index 6e0fe98347..2c8957bfa5 100644 --- a/crates/relayer/src/config.rs +++ b/crates/relayer/src/config.rs @@ -653,6 +653,7 @@ pub enum EventSourceMode { // below when adding a new chain type. #[derive(Clone, Debug, PartialEq, Serialize)] #[serde(tag = "type")] +#[allow(clippy::large_enum_variant)] pub enum ChainConfig { CosmosSdk(CosmosSdkConfig), Astria(CosmosSdkConfig), // TODO: if the config is the cometbft config, it's the same @@ -781,8 +782,8 @@ impl ChainConfig { .get(channel_id) .map(|seqs| Cow::Borrowed(seqs.as_slice())) .unwrap_or_else(|| Cow::Owned(Vec::new())), - Self::Penumbra(config) => todo!(), - Self::Astria(config) => todo!(), + Self::Penumbra(_config) => todo!(), + Self::Astria(_config) => todo!(), } }