Skip to content

Commit

Permalink
fix (#1544): correct Redis message nack & reject signature
Browse files Browse the repository at this point in the history
  • Loading branch information
Lancetnik committed Jun 21, 2024
1 parent f8bb6bc commit f93bb25
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions faststream/redis/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,22 @@ async def ack(
await redis.xack(channel, group, *ids) # type: ignore[no-untyped-call]
await super().ack()

@override
async def nack(
self,
redis: Optional["Redis[bytes]"] = None,
group: Optional[str] = None,
) -> None:
await super().nack()

@override
async def reject(
self,
redis: Optional["Redis[bytes]"] = None,
group: Optional[str] = None,
) -> None:
await super().reject()


class RedisStreamMessage(_RedisStreamMessageMixin[DefaultStreamMessage]):
pass
Expand Down

0 comments on commit f93bb25

Please sign in to comment.