|
17 | 17 | """
|
18 | 18 |
|
19 | 19 | import asyncio
|
20 |
| -import json |
21 | 20 | from typing import Any, Dict, Optional
|
22 | 21 | import requests
|
23 | 22 | from firebase_admin import App, _http_client, _utils
|
@@ -94,7 +93,7 @@ def __init__(self, app: App = None, default_config: Optional[Dict[str, str]] = N
|
94 | 93 | # This gets set when the template is
|
95 | 94 | # fetched from RC servers via the load API, or via the set API.
|
96 | 95 | self._cache = None
|
97 |
| - self._stringified_default_config: Dict[str,str] = {} |
| 96 | + self._stringified_default_config: Dict[str, str] = {} |
98 | 97 |
|
99 | 98 | # RC stores all remote values as string, but it's more intuitive
|
100 | 99 | # to declare default values with specific types, so this converts
|
@@ -167,8 +166,8 @@ async def get_server_template(self):
|
167 | 166 | ServerTemplateData for storing the template parameters and conditions."""
|
168 | 167 | try:
|
169 | 168 | loop = asyncio.get_event_loop()
|
170 |
| - headers, template_data = await loop.run_in_executor(None, |
171 |
| - self._client.headers_and_body, |
| 169 | + headers, template_data = await loop.run_in_executor(None, |
| 170 | + self._client.headers_and_body, |
172 | 171 | 'get', self._get_url())
|
173 | 172 | except requests.exceptions.RequestException as error:
|
174 | 173 | raise self._handle_remote_config_error(error)
|
|
0 commit comments