1
0
mirror of synced 2024-11-24 19:53:10 +01:00

Fixed consumers after reconnect

This commit is contained in:
Mark van Renswoude 2019-09-10 19:01:01 +02:00
parent 70f394f7fe
commit 74ad8fb43e

View File

@ -26,9 +26,12 @@ namespace Tapeti.Connection
} }
public Task RebindQueues() public async Task RebindQueues()
{ {
return BindQueues(); await BindQueues();
if (consuming)
await Task.WhenAll(queues.Select(queue => workerFactory().Consume(queue.Name, queue.Bindings)).ToList());
} }