summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Matías Hernández <matiashe@google.com> 2023-03-09 18:31:07 +0100
committer Matías Hernández <matiashe@google.com> 2023-03-09 18:52:59 +0100
commitab79ac8e6948832252e90e5adc7a4b7198fe64f3 (patch)
treeccfc70fd8804fed2fc42a64120c27ff1baecefd3 /api/api.go
parent9f4c30c20c57f905c9610bdf572b4c9b19dee7d2 (diff)
Eliminate delay before contacts lookup for a Notification
The RankingReconsideration produced by ValidateNotificationPeople had getDelay() == 1000 ms, which meant NMS waiting a full second before starting the work. This wasted half of the time available to decide whether a notification should produce sound during DND, for no good reason (despite what the comment claimed, this delay is not used as a timeout). This CL also moves all the contacts-querying methods in ValidateNotificationPeople to PeopleRankingReconsideration. This makes it clear that the querying is only done as part of the reconsideration, and process() only queries the cache. Bug: 263839687 Test: atest Change-Id: I53e8ce49de004d66f4790fa29fc11dbf0ef8c8e2
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions