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

fix(requester): ClientSession initialized outside asynchrony when using task to run bot #189

Merged
merged 3 commits into from
Dec 25, 2022

Conversation

hank9999
Copy link
Contributor

修复了当使用 asyncio 的 task 去启动机器人时发生的 ClientSession 在异步环境外初始化的问题
Timeout context manager should be used inside a task
image

khl/requester.py Outdated Show resolved Hide resolved
khl/requester.py Outdated Show resolved Hide resolved
hank9999 and others added 2 commits December 25, 2022 12:46
Co-authored-by: Housa Hitomi <TWT2333@outlook.com>
Co-authored-by: Housa Hitomi <TWT2333@outlook.com>
Copy link
Owner

@TWT233 TWT233 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@TWT233 TWT233 merged commit b6f9c6d into TWT233:main Dec 25, 2022
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.

2 participants