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: crush caused by creation 0 interval timer #142

Merged

Conversation

zl03jsj
Copy link
Contributor

@zl03jsj zl03jsj commented Jun 10, 2022

新引入的 venus-gateway 新增加了 ClearRequestInterval 配置项

此配置项用于创建定时器, 定时检查过期的请求.
在venus-gateway中, 没有对此值的有效性进行判断, 如果不设置将最终导致程序panic.

https://github.com/ipfs-force-community/venus-gateway/blob/45c7c99119e76f492b8f011f85834684c53e842c/types/base_event.go#L123-L125

改进

@simlecode simlecode merged commit 790a8c6 into prep/v2.2.0-rc2 Jun 10, 2022
@simlecode simlecode deleted the fix/crush-caused-by-creation-0-interval-timer branch June 10, 2022 05:30
litai686 pushed a commit to litai686/venus-market that referenced this pull request Jul 30, 2022
…/docs/dtynn/prepare_for_v0.2.0

Docs/dtynn/prepare for v0.2.0
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