Skip to content

Commit 494a7ec

Browse files
committed
ypaf fixes
1 parent fc05d3a commit 494a7ec

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

telegram/utils/request.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,12 @@ def _get_con_pool():
3939
if _CON_POOL is not None:
4040
return _CON_POOL
4141

42-
_CON_POOL = urllib3.PoolManager(
43-
maxsize=CON_POOL_SIZE,
44-
cert_reqs='CERT_REQUIRED',
45-
ca_certs=certifi.where(),
46-
socket_options=HTTPConnection.default_socket_options + [
47-
(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1),
48-
])
42+
_CON_POOL = urllib3.PoolManager(maxsize=CON_POOL_SIZE,
43+
cert_reqs='CERT_REQUIRED',
44+
ca_certs=certifi.where(),
45+
socket_options=HTTPConnection.default_socket_options + [
46+
(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1),
47+
])
4948
return _CON_POOL
5049

5150

@@ -60,7 +59,6 @@ def stop_con_pool():
6059
_CON_POOL = None
6160

6261

63-
6462
def _parse(json_data):
6563
"""Try and parse the JSON returned from Telegram.
6664

0 commit comments

Comments
 (0)