Skip to content

Commit

Permalink
0.9.29 update
Browse files Browse the repository at this point in the history
  • Loading branch information
zengbin93 committed Sep 24, 2023
1 parent e2f305d commit 0c3295b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions czsc/traders/rwc.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class RedisWeightsClient:

def __init__(self, strategy_name, redis_url, **kwargs):
"""
:param name: str, 策略名
:param strategy_name: str, 策略名
:param redis_url: str, redis连接字符串
For example::
Expand Down Expand Up @@ -133,7 +133,7 @@ def __heartbeat(self):
key = f'{self.heartbeat_prefix}:{self.strategy_name}'
try:
self.heartbeat_client.set(key, datetime.now().strftime('%Y-%m-%d %H:%M:%S'))
except:
except Exception:
continue
time.sleep(15)

Expand Down

0 comments on commit 0c3295b

Please sign in to comment.