Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
stormaref committed Apr 17, 2024
1 parent 61e9c93 commit 5a5ecfc
Show file tree
Hide file tree
Showing 2 changed files with 4 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.5</Version>
<Version>8.0.6</Version>
<PackageId>KafKaStorm</PackageId>
<LangVersion>latest</LangVersion>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
Expand Down
3 changes: 3 additions & 0 deletions KafkaStorm/Services/ConsumerHostedService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ private void Handle(CancellationToken cancellationToken)
{
if (cancellationToken.IsCancellationRequested) return;
var result = _consumer.Consume(ConsumerRegistrationFactory.ConsumingPeriod);
if (result == null)
return;

var message = JsonSerializer.Deserialize<TMessage>(result.Message.Value) ??
throw new MessageNullException<TMessage>();
_myConsumer.Handle(message, cancellationToken);
Expand Down

0 comments on commit 5a5ecfc

Please sign in to comment.