mirror of
https://github.com/LBRYFoundation/lbry-sdk.git
synced 2025-08-28 16:01:28 +00:00
support python 3.6
This commit is contained in:
parent
aa73cb9bbf
commit
ae0e1bfaef
1 changed files with 3 additions and 1 deletions
|
@ -95,7 +95,9 @@ class BaseHeaders:
|
||||||
async def connect(self, start: int, headers: bytes) -> int:
|
async def connect(self, start: int, headers: bytes) -> int:
|
||||||
added = 0
|
added = 0
|
||||||
bail = False
|
bail = False
|
||||||
loop = asyncio.get_running_loop()
|
# TODO: switch to get_running_loop() after depricating python 3.6 support
|
||||||
|
#loop = asyncio.get_running_loop()
|
||||||
|
loop = asyncio.get_event_loop()
|
||||||
async with self._header_connect_lock:
|
async with self._header_connect_lock:
|
||||||
for height, chunk in self._iterate_chunks(start, headers):
|
for height, chunk in self._iterate_chunks(start, headers):
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Reference in a new issue