Skip to content

Commit

Permalink
Merge branch 'master' into DirectKafkaIntegration
Browse files Browse the repository at this point in the history
  • Loading branch information
ponomaryovigor committed Jul 4, 2024
2 parents 028a110 + ac4480e commit 2c67b6e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.0.3 (11-12-2023):

Add null check in `StreamBinaryEventsWriter.FlushAsync` to prevent NRE if there were no calls to `Put`

## 2.0.2 (29-11-2022):

StreamConsumer: added supports for recall RunAsync method after cancellation
Expand Down
3 changes: 3 additions & 0 deletions Vostok.Hercules.Consumers/StreamBinaryEventsWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ public void Put(Action<IHerculesEventBuilder> buildEvent)
// note (kungurtsev, 15.08.2022): do not call concurrently with Put
public async Task FlushAsync()
{
if (writer is null)
return;

await FlushWriter(writer);
writer = ObtainEmptyWriter();
}
Expand Down
2 changes: 1 addition & 1 deletion Vostok.Hercules.Consumers/Vostok.Hercules.Consumers.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<Configurations>Debug;Release</Configurations>
</PropertyGroup>
<PropertyGroup>
<VersionPrefix>2.0.3</VersionPrefix>
<VersionPrefix>2.0.4</VersionPrefix>
</PropertyGroup>
<PropertyGroup>
<Title>Vostok.Hercules.Consumers</Title>
Expand Down

0 comments on commit 2c67b6e

Please sign in to comment.