Skip to content

Commit

Permalink
Spec: Reduce delay when a context ID is set (#103)
Browse files Browse the repository at this point in the history
Changes the report time for reports with a context ID to the Shared
Storage timeout (see PR #102), i.e. without any randomized delay.

See issue #80 and the corresponding explainer change #100.
  • Loading branch information
alexmturner authored Sep 26, 2023
1 parent 306033a commit bf9cf6c
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions spec.bs
Original file line number Diff line number Diff line change
Expand Up @@ -614,16 +614,14 @@ To <dfn algorithm>obtain a report delivery time</dfn> given a [=moment=]
|currentTime| and a [=moment=] or null |timeout|, perform the following steps.
They return a [=moment=].

1. Let |reportTriggeredTime| be |currentTime|.
1. If |timeout| is not null, set |reportTriggeredTime| to |timeout|.
Issue(80): Reduce the delay when a |timeout| is provided, i.e. when a
context ID is set.
1. If |timeout| is not null:
1. Return |timeout|.
1. If [=automation local testing mode enabled=] is true, return
|reportTriggeredTime|.
|currentTime|.
1. Let |r| be a random double between 0 (inclusive) and 1 (exclusive) with
uniform probability.
1. Return |reportTriggeredTime| + [=minimum report delay=] + |r| * [=randomized
report delay=].
1. Return |currentTime| + [=minimum report delay=] + |r| * [=randomized report
delay=].

Sending reports {#sending-reports}
----------------------------------
Expand Down

0 comments on commit bf9cf6c

Please sign in to comment.