Skip to content

Commit

Permalink
Await sending each message
Browse files Browse the repository at this point in the history
  • Loading branch information
ajuvercr committed Oct 21, 2024
1 parent 5222b85 commit 9258cd8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/connectors/kafka.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,7 @@ export const startKafkaStreamReader: ReaderConstructor<KafkaReaderConfig> = (
}) {
if (topic === config.topic.name) {
const element = message.value?.toString() ?? "";
stream.push(element).catch((error) => {
throw error;
});
await stream.push(element);
}
},
})
Expand Down

0 comments on commit 9258cd8

Please sign in to comment.