Skip to content

Commit

Permalink
fix: update filters config check
Browse files Browse the repository at this point in the history
  • Loading branch information
Lakshay Kalbhor committed May 6, 2024
1 parent 5ccccee commit 7bf29b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion init.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func initKafkaConfig(ko *koanf.Koanf) ([]relay.ConsumerGroupCfg, relay.ProducerC

// initFilters loads the go plugin, initializes it and return a map of filter plugins.
func initFilters(ko *koanf.Koanf, lo *slog.Logger) (map[string]filter.Provider, error) {
if ko.String("mode") != "single" {
if ko.String("mode") != "single" && len(ko.MapKeys("filters")) > 0 {
log.Fatalf("filters can only be used in `single` mode.")
}

Expand Down

0 comments on commit 7bf29b9

Please sign in to comment.