Skip to content

Commit

Permalink
Release 0.16.3. Fixed multiple enumeration when flushing CachedNameApi.
Browse files Browse the repository at this point in the history
  • Loading branch information
Arlodotexe committed Jul 11, 2024
1 parent ebb6f02 commit df105b9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Cache/CachedNameApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public async Task FlushAsync(CancellationToken cancellationToken = default)
{
using (await _cacheUpdateMutex.DisposableWaitAsync(cancellationToken))
{
foreach (var item in PublishedCidNamedContent)
foreach (var item in PublishedCidNamedContent.ToArray())
{
cancellationToken.ThrowIfCancellationRequested();

Expand All @@ -103,7 +103,7 @@ public async Task FlushAsync(CancellationToken cancellationToken = default)
PublishedCidNamedContent.Add(item with { returnValue = result });
}

foreach (var item in PublishedStringNamedContent)
foreach (var item in PublishedStringNamedContent.ToArray())
{
cancellationToken.ThrowIfCancellationRequested();

Expand Down
6 changes: 5 additions & 1 deletion src/OwlCore.Kubo.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,17 @@
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>

<Author>Arlo Godfrey</Author>
<Version>0.16.2</Version>
<Version>0.16.3</Version>
<Product>OwlCore</Product>
<Description>
An essential toolkit for Kubo, IPFS and the distributed web.
</Description>
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
<PackageReleaseNotes>
--- 0.16.3 ---
[Fises]
Fixed an issue where flushing the CachedNameApi would throw multiple enumeration with a non-empty cache.

--- 0.16.2 ---
[Improvements]
Removed null guard in ResolveDagCidAsync extension method. This reflects the behavior of the underlying Kubo API.
Expand Down

0 comments on commit df105b9

Please sign in to comment.