mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-28 10:26:32 +02:00
refactor: rename is_recipient
This commit is contained in:
parent
93ebe8c103
commit
af4c87e123
8 changed files with 19 additions and 19 deletions
|
|
@ -63,7 +63,7 @@ class Environment(BaseModel):
|
|||
found = False
|
||||
# According to the routing feature plan in Chapter 2.2.3.2 of RFC 113
|
||||
for obj, subscribed_tags in self.consumers.items():
|
||||
if message.is_recipient(subscribed_tags):
|
||||
if message.contain_any(subscribed_tags):
|
||||
obj.put_message(message)
|
||||
found = True
|
||||
if not found:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue