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

Update generator stop yield when fetching history. #289

Open
RuofengX opened this issue Nov 16, 2024 · 0 comments
Open

Update generator stop yield when fetching history. #289

RuofengX opened this issue Nov 16, 2024 · 0 comments

Comments

@RuofengX
Copy link
Contributor

RuofengX commented Nov 16, 2024

I have tow thread/coroutine in my app:

  1. One is listening every update from all joined groups/channels, use while let Ok(...) = client.next_update().await.
  2. The other is rolling-fetch all joined groups and channels, around 4000 messages per second. use let mut history = client.iter_messages(&packed_chat);

The issue is, when thread 2 start running, thread 1 stop yield. When thread 2 pause for a few minutes, thread 1 still not recovery, acting like dead thread.

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