Skip to content

Commit

Permalink
remove eof
Browse files Browse the repository at this point in the history
  • Loading branch information
RassK committed Apr 30, 2024
1 parent 1ea216c commit a35283c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/accountingservice/Consumer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ public void StartListening()
try
{
var consumeResult = _consumer.Consume();
if (consumeResult.IsPartitionEOF)
{
continue;
}

ProcessMessage(consumeResult.Message);
}
Expand Down Expand Up @@ -83,8 +79,7 @@ private IConsumer<string, byte[]> BuildConsumer(string servers)
// https://github.com/confluentinc/confluent-kafka-dotnet/tree/07de95ed647af80a0db39ce6a8891a630423b952#basic-consumer-example
AutoOffsetReset = AutoOffsetReset.Earliest,
CancellationDelayMaxMs = 10_000,
EnableAutoCommit = true,
EnablePartitionEof = true,
EnableAutoCommit = true
};

return new ConsumerBuilder<string, byte[]>(conf)
Expand Down

0 comments on commit a35283c

Please sign in to comment.