paritytech / paritytech/try-runtime-cli
Remove DB operations in async code
未关闭
还没有人认领这个 Issue。
enhancement
- 主要语言
- Rust
- 星标
- 25
- 派生
- 29
- PR 合并指标
- 30 天内没有已合并 PR
描述
you don't have to do it in this PR but worth investing whether it makes things faster or not.
Ideally, we shouldn't do any DB operations in async code it might fuckup the async scheduler in tokio
Originally posted by @niklasad1 in https://github.com/paritytech/substrate/pull/14057#discussion_r1181570805
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先在 try-runtime-cli 仓库中定位异步代码路径及其数据库操作,然后确定这些操作如何与 Tokio 调度器交互。该 issue 未提供文件或测试入口,因此首先梳理受影响的代码,并确定如何验证调度器安全性。当相关异步路径在不改变其预期行为的情况下避免数据库操作时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- rust
- 领域
- blockchain, databases
- Issue 类型
- 重构
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100