From fd3c13d8b9a7ee0563ea515ce831fca0a40c53e2 Mon Sep 17 00:00:00 2001 From: Sebastian Stehle Date: Tue, 8 Aug 2017 18:41:32 +0200 Subject: [PATCH] Temp --- .gitignore | 1 + .../CQRS/Events/MongoEventStore.cs | 4 ++- src/Squidex/Properties/launchSettings.json | 28 ------------------- 3 files changed, 4 insertions(+), 29 deletions(-) delete mode 100644 src/Squidex/Properties/launchSettings.json diff --git a/.gitignore b/.gitignore index dc1259a51..7cce4633a 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,4 @@ node_modules/ /src/Squidex/appsettings.Development.json /src/Squidex/Assets +/src/Squidex/Properties/launchSettings.json diff --git a/src/Squidex.Infrastructure.MongoDb/CQRS/Events/MongoEventStore.cs b/src/Squidex.Infrastructure.MongoDb/CQRS/Events/MongoEventStore.cs index 3cdbf6dc3..9cb91e7cb 100644 --- a/src/Squidex.Infrastructure.MongoDb/CQRS/Events/MongoEventStore.cs +++ b/src/Squidex.Infrastructure.MongoDb/CQRS/Events/MongoEventStore.cs @@ -26,7 +26,7 @@ namespace Squidex.Infrastructure.CQRS.Events public class MongoEventStore : MongoRepositoryBase, IEventStore { private const long AnyVersion = long.MinValue; - private const int AppendTimeoutMs = 1000000; + private const int AppendTimeoutMs = 5000; private static readonly BsonTimestamp EmptyTimestamp = new BsonTimestamp(0); private static readonly FieldDefinition TimestampField = Fields.Build(x => x.Timestamp); private static readonly FieldDefinition EventsCountField = Fields.Build(x => x.EventsCount); @@ -149,6 +149,8 @@ namespace Squidex.Infrastructure.CQRS.Events await Collection.InsertOneAsync(commit, new InsertOneOptions(), cts.Token); notifier.NotifyEventsStored(); + + return; } catch (MongoWriteException ex) { diff --git a/src/Squidex/Properties/launchSettings.json b/src/Squidex/Properties/launchSettings.json deleted file mode 100644 index 32dcc5edc..000000000 --- a/src/Squidex/Properties/launchSettings.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "iisSettings": { - "windowsAuthentication": false, - "anonymousAuthentication": true, - "iisExpress": { - "applicationUrl": "http://localhost:5000/", - "sslPort": 0 - } - }, - "profiles": { - "IIS Express": { - "commandName": "IISExpress", - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - } - }, - "Squidex": { - "commandName": "Project", - "launchUrl": "http://localhost:5000", - "environmentVariables": { - "IDENTITY__ADMINEMAIL": "sebastian@squidex.io", - "IDENTITY__ADMINPASSWORD": "1Xhn2a3b4!?", - "ASPNETCORE_ENVIRONMENT": "Development" - }, - "applicationUrl": "http://localhost:5000" - } - } -} \ No newline at end of file