From 521678476289b4093a6933ba8e50d5100d545a98 Mon Sep 17 00:00:00 2001 From: Chris Czub Date: Tue, 30 Apr 2024 13:10:10 -0400 Subject: [PATCH] Add default for excluded_sequences value --- crates/relayer/src/config.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/relayer/src/config.rs b/crates/relayer/src/config.rs index 2c8957bfa5..73a4e4a35d 100644 --- a/crates/relayer/src/config.rs +++ b/crates/relayer/src/config.rs @@ -777,13 +777,12 @@ impl ChainConfig { pub fn excluded_sequences(&self, channel_id: &ChannelId) -> Cow<'_, [Sequence]> { match self { - Self::CosmosSdk(config) => config + Self::CosmosSdk(config) | Self::Astria(config) => config .excluded_sequences .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) => Cow::Owned(Vec::new()), } }