Skip to content

Commit ce2e847

Browse files
authored
Add consumer name property (#203)
- Add the consumer name property. - Property is needed anyway, no only in case of super stream Signed-off-by: Gabriele Santomaggio <G.santomaggio@gmail.com>
1 parent 0322488 commit ce2e847

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

RabbitMQ.Stream.Client/RawConsumer.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,14 @@ private async Task Init()
215215
}
216216

217217
var consumerProperties = new Dictionary<string, string>();
218-
if (_config.IsSingleActiveConsumer)
218+
219+
if (!string.IsNullOrEmpty(_config.Reference))
219220
{
220221
consumerProperties["name"] = _config.Reference;
222+
}
223+
224+
if (_config.IsSingleActiveConsumer)
225+
{
221226
consumerProperties["single-active-consumer"] = "true";
222227
if (!string.IsNullOrEmpty(_config.SuperStream))
223228
{

0 commit comments

Comments
 (0)