-
Notifications
You must be signed in to change notification settings - Fork 229
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor RemoteSettingsClient::get_records
I'm going to update some of the surrounding code and I figure now is a good time to simplify this. One difference is when `sync_if_empty=true` and we have cached records from the server but there were 0 records in the response. Before, we would sync again, now we don't. I believe this is the correct behavior: we only want to sync when the cache is empty, not if the record list is empty. In any case, I don't think this case will happen in practice.
- Loading branch information
Showing
1 changed file
with
22 additions
and
85 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