fix(zulip): connect() accepts **kwargs for is_reconnect flag
CI / validate (pull_request) Failing after 1s
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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user