Skip to content

Commit

Permalink
add version broker for filterning [skip ci]
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriele Santomaggio <[email protected]>
  • Loading branch information
Gsantomaggio committed Jul 31, 2023
1 parent e0a0b1f commit 875f9a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion RabbitMQ.Stream.Client/RawConsumer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ internal void Validate()

if (IsFiltering && !AvailableFeaturesSingleton.Instance.PublishFilter)
{
throw new UnsupportedOperationException("Broker does not support filtering");
throw new UnsupportedOperationException("Broker does not support filtering. You need " +
"RabbitMQ 3.13.0 or later.");
}

switch (ConsumerFilter)
Expand Down
3 changes: 2 additions & 1 deletion RabbitMQ.Stream.Client/RawProducer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ internal void Validate()
{
if (Filter is { FilterValue: not null } && !AvailableFeaturesSingleton.Instance.PublishFilter)
{
throw new UnsupportedOperationException("Broker does not support filtering");
throw new UnsupportedOperationException("Broker does not support filtering. " +
"You need RabbitMQ 3.13.0 or later.");
}
}
}
Expand Down

0 comments on commit 875f9a1

Please sign in to comment.