Complexity of async rust
還沒有人認領這個 Issue。
評估
研究方向
The issue names OpsQueue and the async transaction function but no file or test. Start by tracing that function and related async call sites, then evaluate whether the async usage can be simplified or replaced. Done requires an agreed scope and measurable simplification, which the issue does not yet define.
由索引模型根據 Issue 內容生成。
描述
The complexity of OpsQueue in terms of the work being done is not particularly high, OpsQueue does not have many database tables, it performs some queries on these tables and provides a HTTP API and Rust/Python FFI layers.
However the complexity of some of the code that implements this work is quite high, the issue being that this raises the barrier to new contributors and increases time needed to implement new features or maintain existing ones. For example when reading the following code a new (or existing) contributor may begin to scratch their head 😃
async fn transaction<O, E, F>(&mut self, f: F) -> Result<O, E>
where
for<'t> F: FnOnce(Conn<Self::Writable, Tx<'t, '_>>) -> BoxFuture<'t, Result<O, E>>
+ Send
+ Sync
+ 't,
O: Send,
E: From<sqlx::Error> + Send,
The purpose of this issue is as a place to discuss whether it would be possible to simplify/replace any aspects of the code in relation to the async usage.
- 主要語言
- Rust
- 星號
- 96
- 分支
- 2
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
我們還沒有檢查這個專案的環境設定檔。先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
channable/opsqueue 的其他 Issue
-
Make `submissions_canceled` and `add_chunks_done_to_submissions_failed` migrations bidirectional未關閉
難度 2/5 1-3 小時 新手友好度 74/100
-
難度 3/5 1-2 天 新手友好度 66/100
-
難度 3/5 1-2 天 新手友好度 55/100
-
bug
難度 4/5 3-5 天 新手友好度 35/100
-
bug
難度 4/5 3-5 天 新手友好度 35/100
查看 channable/opsqueue 的全部 Issue
相似的 Issue
-
type/bug
難度 2/5 1-3 小時 新手友好度 68/100
stackabletech/kafka-operator#1033 · 1 則留言 ·
維護者通常 1 天內回覆
-
bug good first issue needs testing
難度 2/5 1-3 小時 新手友好度 84/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
維護者通常 3 天內回覆
-
難度 2/5 1-3 小時 新手友好度 90/100
farion1231/cc-switch#7744 · 1 則留言 ·
維護者通常 1 天內回覆
-
datafusion
難度 2/5 1-3 小時 新手友好度 76/100
apache/iceberg-rust#3297 ·
維護者通常 1 天內回覆