Skip to content

Commit

Permalink
chore: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
liyukun committed Oct 30, 2023
1 parent a506a1f commit 0494f15
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions crates/relayer/src/chain/ckb4ibc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1151,14 +1151,14 @@ impl ChainEndpoint for Ckb4IbcChain {
.into_iter()
.filter(|sequence| {
let seq: u16 = u64::from(*sequence) as u16;
if channel.order == Ordering::Ordered {
if channel.sequence.next_sequence_recvs <= seq {
return true;
}
} else if channel.order == Ordering::Unordered {
if !channel.sequence.received_sequences.contains(&seq) {
return true;
}
if channel.order == Ordering::Ordered && channel.sequence.next_sequence_recvs <= seq
{
return true;
}
if channel.order == Ordering::Unordered
&& !channel.sequence.received_sequences.contains(&seq)
{
return true;
}
let Ok((packet, _)) = self.fetch_packet_cell_and_extract(
&request.channel_id,
Expand Down

0 comments on commit 0494f15

Please sign in to comment.