Skip to content

Commit

Permalink
Fixed usage of CreateIndexes for mongo to avoid database connection a…
Browse files Browse the repository at this point in the history
…lready opening during ioc
  • Loading branch information
agentschmitt committed Aug 14, 2024
1 parent 470987d commit da17e9e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ public class MongoPersistenceProvider : IPersistenceProvider
public MongoPersistenceProvider(IMongoDatabase database)
{
_database = database;
CreateIndexes(this);
}

static MongoPersistenceProvider()
Expand Down Expand Up @@ -263,7 +262,7 @@ public async Task ClearSubscriptionToken(string eventSubscriptionId, string toke

public void EnsureStoreExists()
{

CreateIndexes(this);
}

public async Task<IEnumerable<EventSubscription>> GetSubscriptions(string eventName, string eventKey, DateTime asOf, CancellationToken cancellationToken = default)
Expand Down

0 comments on commit da17e9e

Please sign in to comment.