refactor: centralize ecstore bucket runtime sources (#3810)

This commit is contained in:
Zhengchao An
2026-06-24 09:41:11 +08:00
committed by GitHub
parent 17ae335313
commit 3f624bf06c
7 changed files with 59 additions and 25 deletions
+5 -1
View File
@@ -77,7 +77,11 @@ fn check() -> Result<(), OpaConfigError> {
Ok(())
}
async fn validate(config: &Args) -> Result<(), OpaConfigError> {
let client = reqwest::Client::new();
let client = reqwest::Client::builder()
.timeout(Duration::from_secs(5))
.connect_timeout(Duration::from_secs(1))
.build()
.map_err(OpaConfigError::Connection)?;
match client.post(&config.url).send().await {
Ok(resp) => {