Skip to content

Commit

Permalink
0.9.36 remove retry
Browse files Browse the repository at this point in the history
  • Loading branch information
zengbin93 committed Nov 16, 2023
1 parent 6bc5846 commit 6d06d7e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions czsc/utils/data_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from pathlib import Path
from loguru import logger
from functools import partial
from tenacity import retry, stop_after_attempt, wait_fixed


def set_url_token(token, url):
Expand Down Expand Up @@ -64,7 +63,6 @@ def clear_cache(self):
shutil.rmtree(self.cache_path)
logger.info(f"{self.cache_path} 路径下的数据缓存已清空")

@retry(stop=stop_after_attempt(3), wait=wait_fixed(10), reraise=True)
def post_request(self, api_name, fields='', **kwargs):
"""执行API数据查询
Expand Down

0 comments on commit 6d06d7e

Please sign in to comment.