Skip to content

Commit 7531cdc

Browse files
committed
fix: Prefetch messages in batches (#6915)
I have logs from a user where messages are prefetched for long minutes, and while it's not a problem on its own, we can't rely that the connection overlives such a period, so make `fetch_new_messages()` prefetch (and then actually download) messages in batches of 1000 messages.
1 parent 615a1b3 commit 7531cdc

File tree

2 files changed

+216
-206
lines changed

2 files changed

+216
-206
lines changed

0 commit comments

Comments
 (0)