Skip to content

Commit fe4619f

Browse files
authored
docs: fix comment about clock drift (#112)
Signed-off-by: Babak K. Shandiz <babakks@github.com>
1 parent a390d0f commit fe4619f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

device/device_flow.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,9 @@ func Wait(ctx context.Context, c httpClient, uri string, opts WaitOptions) (*api
176176
// server, we will bump the safety margin to 40%. This will eliminate further
177177
// "slow_down"s in most cases.
178178
//
179-
// We also bail out if we receive more than two "slow_down" errors, as that's
180-
// probably an indication of severe clock drift. In such cases, we'll check
181-
// the time drift between the monotonic and the wall clocks and report it in
182-
// the error message to hint the user at the root cause.
179+
// We also bail out if we receive two "slow_down" errors, as that's probably
180+
// an indication of severe clock drift. In such cases, we'll report the
181+
// measured clock drift to hint the user at the root cause.
183182

184183
baseCheckInterval := time.Duration(opts.DeviceCode.Interval) * time.Second
185184
expiresIn := time.Duration(opts.DeviceCode.ExpiresIn) * time.Second

0 commit comments

Comments
 (0)