File: //lib/python3/dist-packages/botocore/retries/__pycache__/adaptive.cpython-312.pyc
�
P��eo � � � d dl Z d dlZd dlZd dlmZmZmZ e j e� Z d� Z
G d� d� Z G d� d� Zy)� N)�bucket�standard�
throttlingc �� � t j � }t j d|j � �� }t j
d|�� }t
|� }t j t j � �� }t |||||�� }| j j j d|j � | j j j d|j � |S ) Nr )�starting_max_rate�
start_time� )�max_rate�clock)�retry_event_adapter)�
rate_adjustor�rate_clocker�token_bucket�throttling_detectorr zbefore-sendzneeds-retry)r �Clockr �CubicCalculator�current_time�TokenBucket�RateClockerr �ThrottlingErrorDetector�RetryEventAdapter�ClientRateLimiter�meta�events�register�on_sending_request�on_receiving_response)�clientr r
r r r �limiters �;/usr/lib/python3/dist-packages/botocore/retries/adaptive.py�register_retry_handlerr!
s� � ��L�L�N�E��.�.���(:�(:�(<��M� �%�%�q��>�L��u�%�L�"�:�:�$�6�6�8��� �#�!�!�/���G� �K�K�������"�"�� �K�K�������%�%�� �N� c �"