Skip to content

Commit

Permalink
Merge pull request #17 from kubescape/redelivery
Browse files Browse the repository at this point in the history
use RedeliveryDelaySeconds as seconds instead of nanoseconds
  • Loading branch information
matthyx authored Dec 22, 2023
2 parents f94fdf3 + 9632e3c commit ac4666b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pulsar/connector/consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func (opt *createConsumerOptions) defaults(config config.PulsarConfig) {
opt.MaxDeliveryAttempts = uint32(config.MaxDeliveryAttempts)
}
if opt.RedeliveryDelay == 0 {
opt.RedeliveryDelay = time.Duration(config.RedeliveryDelaySeconds)
opt.RedeliveryDelay = time.Second * time.Duration(config.RedeliveryDelaySeconds)
}
if opt.Tenant == "" {
opt.Tenant = config.Tenant
Expand Down

0 comments on commit ac4666b

Please sign in to comment.