Skip to content

Commit

Permalink
移除tenacity重试请求导致异常日志过多
Browse files Browse the repository at this point in the history
  • Loading branch information
auqhjjqdo committed Jan 11, 2024
1 parent 8751e4a commit d01688c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions live_recorder.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
from streamlink_cli.main import open_stream
from streamlink_cli.output import FileOutput
from streamlink_cli.streamrunner import StreamRunner
from tenacity import retry, stop_after_attempt

recording: Dict[str, Tuple[StreamIO, FileOutput]] = {}

Expand Down Expand Up @@ -60,7 +59,6 @@ async def start(self):
async def run(self):
pass

@retry(reraise=True, stop=stop_after_attempt(5))
async def request(self, method, url, **kwargs):
try:
response = await self.client.request(method, url, **kwargs)
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ dependencies = [
"jsonpath-ng>=1.6.0",
"jsengine>=1.0.7.post1",
"quickjs>=1.19.4",
"tenacity>=8.2.3",
"httpx-socks[asyncio]>=0.8.0"
"httpx-socks[asyncio]>=0.8.0",
]

[project.urls]
Expand Down

0 comments on commit d01688c

Please sign in to comment.