Skip to content

Commit

Permalink
Clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 committed Sep 20, 2024
1 parent ae06903 commit 89919c3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions processes/consumer/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (p processArgs) process(ctx context.Context, cfg config.Config, inMemDB *mo
topicConfig, isOk := p.TopicToConfigFormatMap.GetTopicFmt(p.Msg.Topic())
if !isOk {
tags["what"] = "failed_topic_lookup"
return "", fmt.Errorf("failed to get topic name: %s", p.Msg.Topic())
return "", fmt.Errorf("failed to get topic name: %q", p.Msg.Topic())
}

tags["database"] = topicConfig.tc.Database
Expand All @@ -65,7 +65,6 @@ func (p processArgs) process(ctx context.Context, cfg config.Config, inMemDB *mo
}
// Table name is only available after event has been cast
tags["table"] = evt.Table

if topicConfig.tc.ShouldSkip(_event.Operation()) {
// Check to see if we should skip first
// This way, we can emit a specific tag to be more clear
Expand Down

0 comments on commit 89919c3

Please sign in to comment.