This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor storage methods to retrieve to-device messages
This commit refactors the previously rather duplicated 'get_new_messages_for_device' and 'get_new_messages' methods into one new private method with combined logic, and two small public methods. The public methods expose the correct interface for querying to-device messages for either a single device (where a limit can be used) and multiple devices (where using a limit is infeasible).
- Loading branch information
1 parent
0ac079b
commit 822e92a
Showing
1 changed file
with
194 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters