class Aws::Plugins::Retries::ClockSkew
def update_clock_correction(context)
-
context
(Seahorse::Client::RequestContext
) --
def update_clock_correction(context) endpoint = context.http_request.endpoint now_utc = Time.now.utc server_time = server_time(context.http_response) if server_time && (now_utc - server_time).abs > CLOCK_SKEW_THRESHOLD set_clock_correction(endpoint, server_time - now_utc) end end