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
|
||||
# ------------------------------------------------------------------
|
||||
|
||||
async def connect(self) -> bool:
|
||||
"""Connect to Zulip and register an event queue."""
|
||||
async def connect(self, **kwargs: Any) -> bool:
|
||||
"""Connect to Zulip and register an event queue.
|
||||
|
||||
Accepts **kwargs for Hermes Gateway compatibility (e.g., is_reconnect).
|
||||
"""
|
||||
if not HTTPX_AVAILABLE:
|
||||
logger.warning("[%s] httpx not installed", self.name)
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user