Skip to content

Commit

Permalink
Merge pull request #26 from penumbra-zone/25_excluded_sequence
Browse files Browse the repository at this point in the history
Add default excluded_sequences value
  • Loading branch information
aubrika committed Apr 30, 2024
2 parents 7252b23 + 5216784 commit eec44e1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crates/relayer/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
}
}

Expand Down

0 comments on commit eec44e1

Please sign in to comment.