Fixed prefetchcount being applied to the incorrect channel

This commit is contained in:
Mark van Renswoude 2021-10-26 13:29:48 +02:00
parent 847e6a6d83
commit 017c4c130f
1 changed files with 1 additions and 1 deletions

View File

@ -820,7 +820,7 @@ namespace Tapeti.Connection
}
if (connectionParams.PrefetchCount > 0)
capturedPublishChannelModel.BasicQos(0, connectionParams.PrefetchCount, false);
capturedConsumeChannelModel.BasicQos(0, connectionParams.PrefetchCount, false);
capturedPublishChannelModel.ModelShutdown += (_, e) =>
{