mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-27 09:46:24 +02:00
refactor: replace obj with role
This commit is contained in:
parent
a3cb2b4fdc
commit
d36b4e2088
1 changed files with 2 additions and 2 deletions
|
|
@ -61,9 +61,9 @@ class Environment(BaseModel):
|
|||
logger.info(f"publish_message: {message.dump()}")
|
||||
found = False
|
||||
# According to the routing feature plan in Chapter 2.2.3.2 of RFC 113
|
||||
for obj, subscription in self.consumers.items():
|
||||
for role, subscription in self.consumers.items():
|
||||
if is_subscribed(message, subscription):
|
||||
obj.put_message(message)
|
||||
role.put_message(message)
|
||||
found = True
|
||||
if not found:
|
||||
logger.warning(f"Message no recipients: {message.dump()}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue