MCPcopy Create free account
hub / github.com/Roy3838/Observer / _bound_elsewhere

Function _bound_elsewhere

api/remote.py:232–236  ·  view source on GitHub ↗

Whether `code` is already paired on a channel other than `channel`.

(code: str, channel: Channel)

Source from the content-addressed store, hash-verified

230
231
232async def _bound_elsewhere(code: str, channel: Channel) -> bool:
233 """Whether `code` is already paired on a channel other than `channel`."""
234 r = await get_redis()
235 others = [_bind_key(code, c) for c in CHANNELS if c != channel]
236 return bool(await r.exists(*others))
237
238
239async def route_inbound(

Callers 1

route_inboundFunction · 0.85

Calls 2

get_redisFunction · 0.90
_bind_keyFunction · 0.85

Tested by

no test coverage detected