From 2eaaeaa1047a409f0764fc146924d976617e6dea Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Mon, 15 Jan 2024 12:50:48 +0100 Subject: [PATCH] fixed the timeout feature not being enabled => thus causing a compilation error This is an interim fix until https://github.com/XAMPPRocky/octocrab/pull/519 is merged --- server/Cargo.lock | 23 +++++++++++++++++++++++ server/feedback/Cargo.toml | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/server/Cargo.lock b/server/Cargo.lock index 8e9588a86..58c484eaa 100644 --- a/server/Cargo.lock +++ b/server/Cargo.lock @@ -1366,6 +1366,18 @@ dependencies = [ "webpki-roots", ] +[[package]] +name = "hyper-timeout" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbb958482e8c7be4bc3cf272a766a2b0bf1a6755e7a6ae777f017a31d11b13b1" +dependencies = [ + "hyper", + "pin-project-lite", + "tokio", + "tokio-io-timeout", +] + [[package]] name = "hyper-tls" version = "0.5.0" @@ -2148,6 +2160,7 @@ dependencies = [ "http-body", "hyper", "hyper-rustls", + "hyper-timeout", "jsonwebtoken 9.2.0", "once_cell", "percent-encoding", @@ -3642,6 +3655,16 @@ dependencies = [ "windows-sys 0.48.0", ] +[[package]] +name = "tokio-io-timeout" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "30b74022ada614a1b4834de765f9bb43877f910cc8ce4be40e89042c9223a8bf" +dependencies = [ + "pin-project-lite", + "tokio", +] + [[package]] name = "tokio-macros" version = "2.2.0" diff --git a/server/feedback/Cargo.toml b/server/feedback/Cargo.toml index d66d44daf..5a4c1012f 100644 --- a/server/feedback/Cargo.toml +++ b/server/feedback/Cargo.toml @@ -26,7 +26,7 @@ serde_json.workspace = true rand = "0.8.5" regex = "1.10.2" -octocrab = { version = "0.33.0", default-features = false, features=["rustls","rustls-webpki-tokio","retry","tokio"] } +octocrab = { version = "0.33.0", default-features = false, features=["rustls","rustls-webpki-tokio","retry","tokio","timeout"] } # web jsonwebtoken = "9.2.0"