fix(zulip): connect() accepts **kwargs for is_reconnect flag
CI / validate (pull_request) Failing after 1s

Hermes Gateway passes is_reconnect=True to connect() on reconnection.
Without **kwargs, the adapter crashes on reconnect.
This commit is contained in:
Abiba (pi)
2026-06-27 15:21:49 +00:00
parent 3690a7f568
commit 1b0f1c627a
+5 -2
View File
@@ -254,8 +254,11 @@ class ZulipAdapter(BasePlatformAdapter):
# Connection lifecycle # Connection lifecycle
# ------------------------------------------------------------------ # ------------------------------------------------------------------
async def connect(self) -> bool: async def connect(self, **kwargs: Any) -> bool:
"""Connect to Zulip and register an event queue.""" """Connect to Zulip and register an event queue.
Accepts **kwargs for Hermes Gateway compatibility (e.g., is_reconnect).
"""
if not HTTPX_AVAILABLE: if not HTTPX_AVAILABLE:
logger.warning("[%s] httpx not installed", self.name) logger.warning("[%s] httpx not installed", self.name)
return False return False