forked from nervosnetwork/muta
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Taste runtime crate. (nervosnetwork#268)
* chore(core-network): switch to runtime crate * chore(main): wrap main in async runtime * fix(main): clippy false-positives on needless lifetime * chore(core-pubsub): replace std::thread::spawn with runtime spawn * doc(core-pubsub): use runtime::spawn * test(core-pubsub): use runtime::spawn * chore(comp-tx-pool): use runtime::spawn * fix(comp-tx-pool): some tests timeout Switch from native runtime to tokio runtime * chore(core-consensus): use runtime::spawn * test(comp-tx-pool): speed up broadcast_txs test * test(core-network): use runtime::test, remove block_on * style(main): consistent struct init * fix(comp-tx-pool): block on cache_broadcast_receiver Use await instead * style(comp-tx-pool): use ```for_each``` instead of loop in cache_broadcast_txs
- Loading branch information
Showing
23 changed files
with
702 additions
and
475 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.