Browse Source

Another improvement.

pull/352/head
Sebastian Stehle 8 years ago
parent
commit
b505538092
  1. 2
      src/Squidex.Infrastructure/PubSubExtensions.cs
  2. 2
      tests/Squidex.Infrastructure.Tests/EventSourcing/RetrySubscriptionTests.cs

2
src/Squidex.Infrastructure/PubSubExtensions.cs

@ -37,7 +37,7 @@ namespace Squidex.Infrastructure
{
var response = await callback(x.Body);
pubsub.Publish(new Response<TResponse> { CorrelationId = x.CorrelationId, Body = response }, true);
pubsub.Publish(new Response<TResponse> { CorrelationId = x.CorrelationId, Body = response }, self);
});
}

2
tests/Squidex.Infrastructure.Tests/EventSourcing/RetrySubscriptionTests.cs

@ -25,7 +25,7 @@ namespace Squidex.Infrastructure.EventSourcing
{
A.CallTo(() => eventStore.CreateSubscription(A<IEventSubscriber>.Ignored, A<string>.Ignored, A<string>.Ignored)).Returns(eventSubscription);
sut = new RetrySubscription(eventStore, eventSubscriber, streamFilter, null) { ReconnectWaitMs = 100 };
sut = new RetrySubscription(eventStore, eventSubscriber, streamFilter, null) { ReconnectWaitMs = 50 };
sutSubscriber = sut;
}

Loading…
Cancel
Save