mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-27 23:47:28 +00:00
refactor: centralize ecstore bucket runtime sources (#3810)
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user