diff --git a/faststream/redis/schemas/stream_sub.py b/faststream/redis/schemas/stream_sub.py index 0aa2a34145..7ab768cb28 100644 --- a/faststream/redis/schemas/stream_sub.py +++ b/faststream/redis/schemas/stream_sub.py @@ -57,4 +57,8 @@ def __init__( self.max_records = max_records def __hash__(self) -> int: + if self.group is not None: + return hash( + f"stream:{self.name} group:{self.group} consumer:{self.consumer}" + ) return hash(f"stream:{self.name}")