Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KafkaConsumer: change locality of message error #122

Conversation

felixschlegel
Copy link
Contributor

Motivation:

If the KafkaConsumer receives an errorneous message, it should not
throw in the func run() method but rather in the
KafkaConsumer.messages ThrowingSequence.

Modifications:

  • make KafkaConsumerMessages AsyncSequence wrap a sequence that
    yields a Result<> type -> KafkaConsumerMessages unwraps this
    result type and either yields or throws

@FranzBusch
Copy link
Contributor

@felixschlegel Please update

@FranzBusch FranzBusch enabled auto-merge (squash) August 24, 2023 12:27
Motivation:

If the `KafkaConsumer` receives an errorneous message, it should not
throw in the `func run()` method but rather in the
`KafkaConsumer.messages` `ThrowingSequence`.

Modifications:

* make `KafkaConsumerMessages` `AsyncSequence` wrap a sequence that
  yields a `Result<>` type -> `KafkaConsumerMessages` unwraps this
  result type and either yields or throws
auto-merge was automatically disabled August 24, 2023 13:05

Head branch was pushed to by a user without write access

@felixschlegel felixschlegel force-pushed the fs-kafka-consumer-message-error-throw-in-async-sequence branch from de66afd to 9f90a5b Compare August 24, 2023 13:06
@FranzBusch FranzBusch merged commit 1608c4a into swift-server:main Aug 24, 2023
@FranzBusch FranzBusch deleted the fs-kafka-consumer-message-error-throw-in-async-sequence branch August 24, 2023 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants