@@ -125,7 +125,7 @@ func (cfg *ConsumerConfig) newCronsumerConfig() *kcronsumer.Config {
125
125
Duration : cfg .RetryConfiguration .WorkDuration ,
126
126
MaxRetry : cfg .RetryConfiguration .MaxRetry ,
127
127
VerifyTopicOnStartup : cfg .RetryConfiguration .VerifyTopicOnStartup ,
128
- Concurrency : cfg .Concurrency ,
128
+ Concurrency : cfg .RetryConfiguration . Concurrency ,
129
129
MinBytes : cfg .Reader .MinBytes ,
130
130
MaxBytes : cfg .Reader .MaxBytes ,
131
131
MaxWait : cfg .Reader .MaxWait ,
@@ -224,6 +224,7 @@ type RetryConfiguration struct {
224
224
MaxRetry int
225
225
WorkDuration time.Duration
226
226
SkipMessageByHeaderFn SkipMessageByHeaderFn
227
+ Concurrency int
227
228
}
228
229
229
230
type BatchConfiguration struct {
@@ -284,6 +285,10 @@ func (cfg *ConsumerConfig) setDefaults() {
284
285
cfg .Concurrency = 1
285
286
}
286
287
288
+ if cfg .RetryConfiguration .Concurrency == 0 {
289
+ cfg .RetryConfiguration .Concurrency = cfg .Concurrency
290
+ }
291
+
287
292
if cfg .CommitInterval == 0 {
288
293
cfg .CommitInterval = time .Second
289
294
// Kafka-go library default value is 0, we need to also change this.
0 commit comments