mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-19 02:56:18 +00:00
refactor: stabilize heal format recovery integration tests (#1984)
Co-authored-by: houseme <housemecn@gmail.com>
This commit is contained in:
@@ -225,7 +225,11 @@ pub fn must_get_local_ips() -> std::io::Result<Vec<IpAddr>> {
|
||||
}
|
||||
|
||||
pub fn get_default_location(_u: Url, _region_override: &str) -> String {
|
||||
todo!();
|
||||
if !_region_override.is_empty() {
|
||||
return _region_override.to_string();
|
||||
}
|
||||
|
||||
_u.host().map(|host| host.to_string()).unwrap_or_default()
|
||||
}
|
||||
|
||||
pub fn get_endpoint_url(endpoint: &str, secure: bool) -> Result<Url, Error> {
|
||||
|
||||
Reference in New Issue
Block a user