Skip to content

Commit 2b72a3f

Browse files
committed
Add feature flag warning
Signed-off-by: Gabriele Santomaggio <[email protected]>
1 parent 23b02d1 commit 2b72a3f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

RabbitMQ.Stream.Client/RawConsumer.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ internal void Validate()
8383
if (IsFiltering && !AvailableFeaturesSingleton.Instance.PublishFilter)
8484
{
8585
throw new UnsupportedOperationException("Broker does not support filtering. You need " +
86-
"RabbitMQ 3.13.0 or later.");
86+
"RabbitMQ 3.13.0 or later and " +
87+
"the stream_filtering feature flag enabled.");
8788
}
8889

8990
switch (ConsumerFilter)

RabbitMQ.Stream.Client/RawProducer.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ internal void Validate()
4545
if (Filter is { FilterValue: not null } && !AvailableFeaturesSingleton.Instance.PublishFilter)
4646
{
4747
throw new UnsupportedOperationException("Broker does not support filtering. " +
48-
"You need RabbitMQ 3.13.0 or later.");
48+
"You need RabbitMQ 3.13.0 or later and" +
49+
"the stream_filtering feature flag enabled.");
4950
}
5051
}
5152
}

0 commit comments

Comments
 (0)