Skip to content

Commit

Permalink
Update comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 committed Sep 26, 2024
1 parent 2a6b204 commit ad40320
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions processes/consumer/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,6 @@ func (p processArgs) process(ctx context.Context, cfg config.Config, inMemDB *mo
return "", fmt.Errorf("cannot convert to memory event: %w", err)
}

// Emit event execution time.
evt.EmitExecutionTimeLag(metricsClient, cfg.Mode)

// Table name is only available after event has been cast
tags["table"] = evt.Table
if topicConfig.tc.ShouldSkip(_event.Operation()) {
Expand All @@ -76,6 +73,9 @@ func (p processArgs) process(ctx context.Context, cfg config.Config, inMemDB *mo
return evt.Table, nil
}

// Emit execution time lag for non-skipped events.
evt.EmitExecutionTimeLag(metricsClient, cfg.Mode)

shouldFlush, flushReason, err := evt.Save(cfg, inMemDB, topicConfig.tc, p.Msg)
if err != nil {
tags["what"] = "save_fail"
Expand Down

0 comments on commit ad40320

Please sign in to comment.