-
Notifications
You must be signed in to change notification settings - Fork 250
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
[#12783] Improve order of mailserver requests #2510
Conversation
Pull Request Checklist
|
Jenkins BuildsClick to see older builds (12)
|
445656e
to
03b16f3
Compare
03b16f3
to
88fd9cb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Nice idea
88fd9cb
to
5693bc6
Compare
5693bc6
to
c0c9094
Compare
Hey @rasom -> we are not sure but we are getting a crash after these changes, can you have a look DBG 2022-02-02 13:04:57.626+01:00 NewBE_callPrivateRPC topics="rpc" tid=18836562 file=core.nim:24 rpc_method=wakuext_importCommunity goroutine 4351 [running]: ? |
@Khushboo-dev-cpp I will prepare a fix in a moment |
@Khushboo-dev-cpp should be fixed in another PR |
needed for status-im/status-mobile#12783
Before syncing, topics are sorted by priority. In case if all topics have zero priority requests are executed as before. Otherwise, topics with higher priority are requested in first N batches (currently three batches with 1, 5, 10 topics. That's arbitrary, emphasis is on the first batch), and the rest of topics are requested as before.
chat.ReadMessagesAtClockValue
is used to prioritise topics before historical requests as it is always updated when the user opens chat (at least in mobile version). We can add a separate field for this but I'm not sure this is necessary.status: ready