We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d3b3dd7 + b719522 commit 3ca458dCopy full SHA for 3ca458d
2 files changed
pyproject.toml
@@ -41,7 +41,7 @@ classifiers = [
41
42
dependencies = [
43
"taskiq>=0.12.1,<0.13.0",
44
- "faststream>=0.3.14,<0.7",
+ "faststream>=0.3.14,<0.8",
45
]
46
47
[project.optional-dependencies]
taskiq_faststream/broker.py
@@ -56,7 +56,9 @@ async def startup(self) -> None:
56
57
async def shutdown(self) -> None:
58
"""Shutdown wrapped FastStream broker."""
59
- await self.broker.close()
+ # `stop` replaced `close` in FastStream 0.5.44; `close` removed in 0.7.0.
60
+ stop = getattr(self.broker, "stop", None) or self.broker.close
61
+ await stop()
62
await super().shutdown()
63
64
async def kick(self, message: PatchedMessage) -> None: # type: ignore[override]
0 commit comments