Skip to content

Commit

Permalink
Merge pull request #14 from 3lvia/bug/TKP-9301_filter_function
Browse files Browse the repository at this point in the history
TKP-9301 Exported filter class so it can be used outside kafka package
  • Loading branch information
esdagh authored Feb 9, 2024
2 parents c505e18 + f057ffc commit 61b7239
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/sfkafkalib/kafka/filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package kafka

import "github.com/3lvia/libraries-go/pkg/kafkaclient"

type kafkaFilter struct {
type Filter struct {
keep filterFn
}

type filterFn func(message *kafkaclient.StreamingMessage) bool
type filterFn func(m *kafkaclient.StreamingMessage) bool
2 changes: 1 addition & 1 deletion pkg/sfkafkalib/kafka/kafkaconsumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ var (

type Consumer struct {
logger *otelzap.Logger
filter *kafkaFilter
filter *Filter
tracer trace.Tracer
ctx context.Context
conf configuration.ConsumerConfig
Expand Down

0 comments on commit 61b7239

Please sign in to comment.