Whether `code` is already paired on a channel other than `channel`.
(code: str, channel: Channel)
| 230 | |
| 231 | |
| 232 | async 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 | |
| 239 | async def route_inbound( |
no test coverage detected