refactor: Update according to Chapter 2.1.3.2 of RFC 116

This commit is contained in:
莘权 马 2023-11-08 22:22:09 +08:00
parent 9cdbc0a0ae
commit d1977f1586

View file

@ -146,7 +146,7 @@ class Role:
"""Listen to the corresponding behaviors"""
self._subscription = tags
if self._rc.env: # According to the routing feature plan in Chapter 2.2.3.2 of RFC 113
self._rc.env.set_subscribed_tags(self, self._subscription)
self._rc.env.set_subscription(self, self._subscription)
def _set_state(self, state):
"""Update the current state."""