Skip to content

Commit 9bafa22

Browse files
committed
Switched to hashsets for internal collection and command tracking
1 parent e333bdf commit 9bafa22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/MongoFramework/Infrastructure/EntityWriterPipeline.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ public class EntityWriterPipeline<TEntity> : IEntityWriterPipeline<TEntity> wher
1414
{
1515
public IMongoDbConnection Connection { get; }
1616
private ICommandWriter<TEntity> CommandWriter { get; }
17-
private List<IEntityCollectionBase<TEntity>> ManagedCollections { get; } = new List<IEntityCollectionBase<TEntity>>();
18-
private List<IWriteCommand<TEntity>> StagedCommands { get; } = new List<IWriteCommand<TEntity>>();
17+
private HashSet<IEntityCollectionBase<TEntity>> ManagedCollections { get; } = new HashSet<IEntityCollectionBase<TEntity>>();
18+
private HashSet<IWriteCommand<TEntity>> StagedCommands { get; } = new HashSet<IWriteCommand<TEntity>>();
1919

2020
public EntityWriterPipeline(IMongoDbConnection connection)
2121
{

0 commit comments

Comments
 (0)