Skip to content

Commit

Permalink
debug closing exception
Browse files Browse the repository at this point in the history
  • Loading branch information
stormaref committed Apr 17, 2024
1 parent db14e16 commit 8bc9c64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion KafkaStorm/KafkaStorm.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Nullable>enable</Nullable>
<LangVersion>latest</LangVersion>
<Authors>ArefAzizian</Authors>
<Version>8.0.3</Version>
<Version>8.0.4</Version>
<PackageId>KafKaStorm</PackageId>
<LangVersion>latest</LangVersion>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
Expand Down
1 change: 1 addition & 0 deletions KafkaStorm/Services/ConsumerHostedService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public Task StartAsync(CancellationToken cancellationToken)

private void Handle(CancellationToken cancellationToken)
{
if (cancellationToken.IsCancellationRequested) return;
var result = _consumer.Consume(1);
var message = JsonSerializer.Deserialize<TMessage>(result.Message.Value) ??
throw new MessageNullException<TMessage>();
Expand Down

0 comments on commit 8bc9c64

Please sign in to comment.