mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-06-17 13:05:58 +00:00
fix(channel): unsubscribe channel listeners by equality (#3608)
This commit is contained in:
@@ -172,7 +172,7 @@ class MessageBus:
|
||||
|
||||
def unsubscribe_outbound(self, callback: OutboundCallback) -> None:
|
||||
"""Remove a previously registered outbound callback."""
|
||||
self._outbound_listeners = [cb for cb in self._outbound_listeners if cb is not callback]
|
||||
self._outbound_listeners = [cb for cb in self._outbound_listeners if cb != callback]
|
||||
|
||||
async def publish_outbound(self, msg: OutboundMessage) -> None:
|
||||
"""Dispatch an outbound message to all registered listeners."""
|
||||
|
||||
Reference in New Issue
Block a user