refactor: rename is_recipient

This commit is contained in:
莘权 马 2023-11-08 13:42:08 +08:00
parent 93ebe8c103
commit af4c87e123
8 changed files with 19 additions and 19 deletions

View file

@ -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: