Skip to content

Commit 7bf29b9

Browse files
author
Lakshay Kalbhor
committed
fix: update filters config check
1 parent 5ccccee commit 7bf29b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

init.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ func initKafkaConfig(ko *koanf.Koanf) ([]relay.ConsumerGroupCfg, relay.ProducerC
195195

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

0 commit comments

Comments
 (0)