Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

request in async way #121

Merged
merged 3 commits into from
Sep 8, 2024
Merged

request in async way #121

merged 3 commits into from
Sep 8, 2024

Conversation

doombeaker
Copy link
Collaborator

@doombeaker doombeaker commented Sep 8, 2024

一些看上去不怎么耗时的操作,本来是用同步方法做的。
但是如果网络出问题,这些同步方法就阻塞了。

需要改成异步请求。

  • get news.josn, bznews.json
  • 获取模型列表

Copy link

github-actions bot commented Sep 8, 2024

Your code does not meet the Black formatting standards.
Please run python3 -m pip install -r dev_requirements.txt && pre-commit install && pre-commit run --all-files to format your code.

Copy link

github-actions bot commented Sep 8, 2024

Your code does not meet the Black formatting standards.
Please run python3 -m pip install -r dev_requirements.txt && pre-commit install && pre-commit run --all-files to format your code.

@doombeaker doombeaker changed the base branch from dev_modelhost_v2 to master September 8, 2024 11:42
@doombeaker doombeaker marked this pull request as ready for review September 8, 2024 11:46
@doombeaker doombeaker merged commit f25c316 into master Sep 8, 2024
4 checks passed
@doombeaker doombeaker deleted the request_in_async_way branch September 8, 2024 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant