refactor(gateway): run_watchers resolves adapters through the intake/delivery seams
Mechanical migration of the `_adapter_for_source` call sites in this sibling. Intake policy sites take `_intake_adapter_for`; every send/edit/typing/pending-slot site takes `_delivery_adapter_for`. Part of #88715 (phase 4).
This commit is contained in:
@@ -109,7 +109,7 @@ class GatewaySessionWatchersMixin:
|
||||
if not session_key or session_key in candidates or not overflow:
|
||||
continue
|
||||
source = getattr(overflow[0], "source", None)
|
||||
if source is not None and (adapter := self._adapter_for_source(source)) is not None:
|
||||
if source is not None and (adapter := self._delivery_adapter_for(source)) is not None:
|
||||
candidates[session_key] = (adapter, overflow[0])
|
||||
return candidates
|
||||
|
||||
|
||||
Reference in New Issue
Block a user