agent: update tokio to 1.8.1

Update to latest tokio to address RUSTSEC-2021-0072:
 Task dropped in wrong thread when aborting `LocalSet` task

Update the toml to specify just 1.x for the tokio version.

Fixes: #2165

Signed-off-by: Eric Ernst <eric_ernst@apple.com>
This commit is contained in:
Eric Ernst 2021-07-14 16:50:18 -07:00
parent c8aab29b38
commit acf6932863
2 changed files with 3 additions and 3 deletions

4
src/agent/Cargo.lock generated
View File

@ -1548,9 +1548,9 @@ dependencies = [
[[package]]
name = "tokio"
version = "1.6.0"
version = "1.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bd3076b5c8cc18138b8f8814895c11eb4de37114a5d127bafdc5e55798ceef37"
checksum = "98c8b05dc14c75ea83d63dd391100353789f5f24b8b3866542a5e85c8be8e985"
dependencies = [
"autocfg",
"bytes 1.0.1",

View File

@ -26,7 +26,7 @@ async-recursion = "0.3.2"
futures = "0.3.12"
# Async runtime
tokio = { version = "1.2.0", features = ["full"] }
tokio = { version = "1", features = ["full"] }
tokio-vsock = "0.3.1"
netlink-sys = { version = "0.7.0", features = ["tokio_socket",]}