Remove async recursion

Greatly increases safety as well by ensuring only one message is 
processed at once.
This commit is contained in:
Luke Parker
2022-10-17 12:04:59 -04:00
parent 8b6eb1172f
commit 6b56510da9
4 changed files with 120 additions and 104 deletions

12
Cargo.lock generated
View File

@@ -256,17 +256,6 @@ dependencies = [
"winapi",
]
[[package]]
name = "async-recursion"
version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2cda8f4bcc10624c4e85bc66b3f452cca98cfa5ca002dc83a16aad2367641bea"
dependencies = [
"proc-macro2",
"quote",
"syn",
]
[[package]]
name = "async-std"
version = "1.12.0"
@@ -8868,7 +8857,6 @@ dependencies = [
name = "tendermint-machine"
version = "0.1.0"
dependencies = [
"async-recursion",
"async-trait",
"parity-scale-codec",
"tokio",