Skip to content

Commit 1bcb015

Browse files
committed
Dump reqwest, warp and tokio version
1 parent d455218 commit 1bcb015

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Cargo.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,11 @@ ron = { version = "0.6", optional = true }
3737
json5_rs = { version = "0.3", optional = true, package = "json5" }
3838

3939
[dev-dependencies]
40+
# outdated tokio, warp and reqwest dependencies ensure green build in 1.44 CI pipeline
4041
serde_derive = "1.0.8"
4142
float-cmp = "0.8"
4243
chrono = { version = "0.4", features = ["serde"] }
43-
tokio = {version = "1.6.0", features = ["rt-multi-thread", "macros", "fs", "io-util"]}
44-
warp = "0.3.1"
44+
tokio = {version = "0.2.25", features = ["rt-threaded", "macros", "fs", "io-util"]}
45+
warp = "0.2.5"
4546
futures = "0.3.15"
46-
reqwest = "0.11.3"
47+
reqwest = "0.10.10"

examples/async_source/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ async fn run_server() -> Result<(), Box<dyn Error>> {
3131

3232
async fn run_client() -> Result<(), Box<dyn Error>> {
3333
// Good enough for an example to allow server to start
34-
tokio::time::sleep(tokio::time::Duration::from_secs(3)).await;
34+
tokio::time::delay_for(tokio::time::Duration::from_secs(3)).await;
3535

3636
let config = ConfigBuilder::<AsyncState>::default()
3737
.add_async_source(HttpSource {

0 commit comments

Comments
 (0)