Skip to content

Commit

Permalink
bugfix: using collection name as key for caching collections (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
TimoSchmechel committed Dec 20, 2023
1 parent 5206df8 commit 19d4b39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Orleans.Providers.MongoDB/Orleans.Providers.MongoDB.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<PackageTags>Orleans OrleansProviders MongoDB</PackageTags>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<TargetFrameworks>net7.0</TargetFrameworks>
<Version>7.6.0</Version>
<Version>7.6.1</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ private MongoGrainStorageCollection GetCollection<T>(string stateName, GrainId g
{
var collectionName = $"{options.CollectionPrefix}{ReturnGrainName<T>(stateName, grainId)}";

return collections.GetOrAdd(stateName, x =>
return collections.GetOrAdd(collectionName, x =>
new MongoGrainStorageCollection(
mongoClient,
options.DatabaseName,
Expand Down

0 comments on commit 19d4b39

Please sign in to comment.