Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions device/device_flow.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,9 @@ func Wait(ctx context.Context, c httpClient, uri string, opts WaitOptions) (*api
// server, we will bump the safety margin to 40%. This will eliminate further
// "slow_down"s in most cases.
//
// We also bail out if we receive more than two "slow_down" errors, as that's
// probably an indication of severe clock drift. In such cases, we'll check
// the time drift between the monotonic and the wall clocks and report it in
// the error message to hint the user at the root cause.
// We also bail out if we receive two "slow_down" errors, as that's probably
// an indication of severe clock drift. In such cases, we'll report the
// measured clock drift to hint the user at the root cause.

baseCheckInterval := time.Duration(opts.DeviceCode.Interval) * time.Second
expiresIn := time.Duration(opts.DeviceCode.ExpiresIn) * time.Second
Expand Down