mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 08:33:07 +00:00
Improve some bugbear findings
This commit is contained in:
@@ -201,7 +201,7 @@ async def create_client(
|
||||
token,
|
||||
scheme='ws',
|
||||
name='default',
|
||||
protocol=ClientProtocol(),
|
||||
protocol=None,
|
||||
sleep_time=10,
|
||||
ping_timeout=10,
|
||||
wait_timeout=30,
|
||||
@@ -216,6 +216,8 @@ async def create_client(
|
||||
:param name: The name of the producer
|
||||
:param **kwargs: Any extra kwargs passed to websockets.connect
|
||||
"""
|
||||
if not protocol:
|
||||
protocol = ClientProtocol()
|
||||
|
||||
while 1:
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user