Skip to content

Commit

Permalink
chore: rename
Browse files Browse the repository at this point in the history
  • Loading branch information
shuiyisong committed Sep 18, 2024
1 parent 3070128 commit f65f6f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/servers/src/http/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ pub async fn log_ingester(
log_state
.ingest_interceptor
.as_ref()
.pre_transform(&value, query_ctx.clone())?;
.pre_pipeline(&value, query_ctx.clone())?;

ingest_logs_inner(
handler,
Expand Down
6 changes: 3 additions & 3 deletions src/servers/src/interceptor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ pub trait LogIngestInterceptor {
type Error: ErrorExt;

/// Called before pipeline execution.
fn pre_transform(
fn pre_pipeline(
&self,
_values: &[Value],
_query_ctx: QueryContextRef,
Expand All @@ -432,13 +432,13 @@ where
{
type Error = E;

fn pre_transform(
fn pre_pipeline(
&self,
values: &[Value],
query_ctx: QueryContextRef,
) -> Result<(), Self::Error> {
if let Some(this) = self {
this.pre_transform(values, query_ctx)
this.pre_pipeline(values, query_ctx)
} else {
Ok(())
}
Expand Down

0 comments on commit f65f6f1

Please sign in to comment.