Skip to content

Commit

Permalink
fix: incorrect use of blacklist variable (#4099)
Browse files Browse the repository at this point in the history
### Description

Otherwise, the whitelist will not work; any whitelist parameter will
function as a blocklist.

Co-authored-by: Trevor Porter <[email protected]>
  • Loading branch information
lyfsn and tkporter authored Sep 12, 2024
1 parent 95f6421 commit b326d4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rust/agents/relayer/src/msg/processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,8 @@ impl ProcessorExt for MessageProcessor {
}

// Skip if the message is blacklisted
if self.message_whitelist.msg_matches(&msg, false) {
debug!(?msg, blacklist=?self.message_whitelist, "Message blacklisted, skipping");
if self.message_blacklist.msg_matches(&msg, false) {
debug!(?msg, blacklist=?self.message_blacklist, "Message blacklisted, skipping");
return Ok(());
}

Expand Down

0 comments on commit b326d4b

Please sign in to comment.