Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

recovered role can't observe new message #1455

Open
wanghiver opened this issue Aug 19, 2024 · 0 comments
Open

recovered role can't observe new message #1455

wanghiver opened this issue Aug 19, 2024 · 0 comments

Comments

@wanghiver
Copy link

Bug description
recovered为True时,msg_buffer中的消息不会再被pop,总是把latest_observed_msg当作新消息

Bug related code
async def _observe(self, ignore_memory=False) -> int:
if self.recovered:
news = [self.latest_observed_msg] if self.latest_observed_msg else []
if not news:
news = self.rc.msg_buffer.pop_all()
...
self.latest_observed_msg = self.rc.news[-1] if self.rc.news else None # record the latest observed msg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant