File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 20
20
from .token_cache import TokenCache
21
21
import msal .telemetry
22
22
from .region import _detect_region
23
- from .http_decorate import _decorate
23
+ from .throttled_http_client import ThrottledHttpClient
24
24
25
25
26
26
# The __init__.py will import this. Not the other way around.
@@ -296,7 +296,10 @@ def __init__(
296
296
a = requests .adapters .HTTPAdapter (max_retries = 1 )
297
297
self .http_client .mount ("http://" , a )
298
298
self .http_client .mount ("https://" , a )
299
- _decorate (self .http_client , {}) # Hard code an in-memory cache, for now
299
+ self .http_client = ThrottledHttpClient (
300
+ self .http_client ,
301
+ {} # Hard code an in-memory cache, for now
302
+ )
300
303
301
304
self .app_name = app_name
302
305
self .app_version = app_version
You can’t perform that action at this time.
0 commit comments