Skip to content

Commit

Permalink
feat: use lust spawn
Browse files Browse the repository at this point in the history
  • Loading branch information
dengjunhai.hi committed Oct 23, 2024
1 parent 2541c38 commit 1e836d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# static-graph

fork 一份开源代码适配一下公司内的组件
- 使用 lust::spawn 替换 tokio::spawn 否则没有 log_id
---

[![Crates.io][crates-badge]][crates-url]
[![License][license-badge]][license-url]
[![Build Status][actions-badge]][actions-url]
Expand Down
2 changes: 1 addition & 1 deletion src/codegen/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ impl Codegen {
let #name = #(#node.)*clone();
let (#tx, _) = static_graph::sync::broadcast::channel(#len);
#(let mut #rxs = #tx.subscribe();)*
static_graph::spawn(async move {
lust::spawn(async move {
#channels
let resp = #name.run(#req, (#(#resps),*)).await;
#tx.send(resp).ok();
Expand Down

0 comments on commit 1e836d4

Please sign in to comment.