You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* `KafkaProducer.makeeProducerWithEvents()` avoid `fatalError`
Motivation:
`KafkaProducer.makeeProducerWithEvents()`: initializing the
`NIOAsyncSequenceProducer
Modifications:
* make designated initializer of `KafkaProducer` non-throwing
* `KafkaProducer.makeProducerWithEvents`:
* initialize `client` before
calling `NIOAsyncSequenceProducer.makeSequence`
-> if initializing `client` fails the appropiate error gets thrown
instead of triggering a fatalError because
`KafkaProducerCloseOnTerminate` gets triggered in an invalid state
Result:
When the initialization `KafkaProducer.makeProducerWithEvents` fails an
error is thrown instead of triggering the `fatalError` in
`KafkaProducerCloseOnTerminate`.
* Add order comment to KafkaConsumer.makeConsumerWithEvents
0 commit comments