Fixed consumers after reconnect
This commit is contained in:
parent
70f394f7fe
commit
74ad8fb43e
@ -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());
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user