Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
simaoribeiro committed Oct 30, 2023
1 parent 821b245 commit ae1c60e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/KafkaFlow/Consumers/ConsumerWorker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ private async Task ProcessMessageAsync(IMessageContext context, CancellationToke
{
await this.globalEvents.FireMessageConsumeStartedAsync(new MessageEventContext(context));

await context.ConsumerContext.Completion.ContinueWith(
_= context.ConsumerContext.Completion.ContinueWith(
async task =>
{
if (task.IsFaulted)
Expand All @@ -145,8 +145,6 @@ await context.ConsumerContext.Completion.ContinueWith(
await this.middlewareExecutor
.Execute(context, _ => Task.CompletedTask)
.ConfigureAwait(false);

await this.globalEvents.FireMessageConsumeCompletedAsync(new MessageEventContext(context));
}
catch (OperationCanceledException) when (cancellationToken.IsCancellationRequested)
{
Expand Down

0 comments on commit ae1c60e

Please sign in to comment.