Skip to content

Commit

Permalink
update to new field
Browse files Browse the repository at this point in the history
  • Loading branch information
Augustyniak committed Aug 29, 2024
1 parent cd72023 commit 695457e
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 88 deletions.
4 changes: 2 additions & 2 deletions bd-log-filter/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ impl Transform {
Transform_type::RemoveField(config) => {
Self::RemoveField(RemoveField::new(config).context("invalid RemoveField configuration")?)
},
Transform_type::RegexMatchAndSubstitute(config) => Self::RegexMatchAndSubstitute(
Transform_type::RegexMatchAndSubstituteField(config) => Self::RegexMatchAndSubstitute(
RegexMatchAndSubstitute::new(config)
.context("invalid RegexMatchAndSubstitute configuration")?,
),
Expand Down Expand Up @@ -317,7 +317,7 @@ struct RegexMatchAndSubstitute {
}

impl RegexMatchAndSubstitute {
fn new(config: filter::transform::RegexMatchAndSubstitute) -> Result<Self> {
fn new(config: filter::transform::RegexMatchAndSubstituteField) -> Result<Self> {
Ok(Self {
field_name: config.name,
pattern: Regex::new(&config.pattern)?,
Expand Down
Loading

0 comments on commit 695457e

Please sign in to comment.