Skip to content

Commit

Permalink
DeadLetterTopic field added to RetryConfiguration. (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
vedateroglu authored Sep 11, 2023
1 parent 11ed120 commit a24d3e5
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions consumer_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ func (cfg *ConsumerConfig) newCronsumerConfig() *kcronsumer.Config {
ClientID: cfg.ClientID,
GroupID: cfg.Reader.GroupID,
Topic: cfg.RetryConfiguration.Topic,
DeadLetterTopic: cfg.RetryConfiguration.DeadLetterTopic,
Cron: cfg.RetryConfiguration.StartTimeCron,
Duration: cfg.RetryConfiguration.WorkDuration,
Concurrency: cfg.Concurrency,
Expand Down Expand Up @@ -95,16 +96,17 @@ type MetricConfiguration struct {
}

type RetryConfiguration struct {
SASL *SASLConfig
TLS *TLSConfig
ClientID string
StartTimeCron string
Topic string
Rack string
Brokers []string
MaxRetry int
WorkDuration time.Duration
LogLevel LogLevel
SASL *SASLConfig
TLS *TLSConfig
ClientID string
StartTimeCron string
Topic string
DeadLetterTopic string
Rack string
Brokers []string
MaxRetry int
WorkDuration time.Duration
LogLevel LogLevel
}

type BatchConfiguration struct {
Expand Down

0 comments on commit a24d3e5

Please sign in to comment.