Skip to content

Commit 3e17137

Browse files
committed
bumped up version + updated changelog
1 parent e9007f6 commit 3e17137

File tree

5 files changed

+22
-16
lines changed

5 files changed

+22
-16
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 0.20.0 (2025-04-28)
2+
3+
- added OpenBSD support [#71 by catap](https://github.com/westandskif/rate-mirrors/pull/71)
4+
15
# 0.19.2 (2025-04-02)
26

37
- fixed `--save` to only write to file on success [#70 by googlebleh](https://github.com/westandskif/rate-mirrors/pull/70)

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rate_mirrors"
3-
version = "0.19.2"
3+
version = "0.20.0"
44
authors = ["Nikita Almakov <nikita.almakov@gmail.com>"]
55
edition = "2024"
66
description = "Everyday-use client-side map-aware mirror ranking tool (Arch Linux; Manjaro; custom ones)"

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ This is a tool, which tests mirror speed for:
1616
- CachyOS
1717
- EndeavourOS
1818
- Manjaro
19+
- OpenBSD
1920
- RebornOS
2021
- any http/https mirrors via stdin.
2122

src/targets/openbsd.rs

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ impl FetchMirrors for OpenBSDTarget {
2525
config: Arc<Config>,
2626
_tx_progress: mpsc::Sender<String>,
2727
) -> Result<Vec<Mirror>, AppError> {
28-
let url =
29-
"https://ftp.openbsd.org/pub/OpenBSD/ftplist";
28+
let url = "https://ftp.openbsd.org/pub/OpenBSD/ftplist";
3029

3130
let output = Runtime::new().unwrap().block_on(async {
3231
Ok::<_, AppError>(
@@ -51,11 +50,15 @@ impl FetchMirrors for OpenBSDTarget {
5150
!url_part.is_empty() && !description_part.is_empty()
5251
})
5352
.filter_map(|(url_part, description_part)| {
54-
Url::parse(&url_part).ok().map(|url| (url, description_part))
53+
Url::parse(&url_part)
54+
.ok()
55+
.map(|url| (url, description_part))
5556
})
5657
.filter(|(url, _description_part)| {
57-
url.scheme().parse::<>()
58-
.map(|p| config.is_protocol_allowed(&p)).unwrap_or(false)
58+
url.scheme()
59+
.parse()
60+
.map(|p| config.is_protocol_allowed(&p))
61+
.unwrap_or(false)
5962
});
6063

6164
let result: Vec<_> = urls
@@ -78,15 +81,13 @@ impl FetchMirrors for OpenBSDTarget {
7881
description_part
7982
}
8083
};
81-
Url::parse(
82-
(url.to_string() + self.path_to_test.as_str()).as_ref(),
83-
)
84-
.ok()
85-
.map(|url_to_test| Mirror {
86-
country: Country::from_str(country),
87-
url,
88-
url_to_test,
89-
})
84+
Url::parse((url.to_string() + self.path_to_test.as_str()).as_ref())
85+
.ok()
86+
.map(|url_to_test| Mirror {
87+
country: Country::from_str(country),
88+
url,
89+
url_to_test,
90+
})
9091
})
9192
.collect();
9293

0 commit comments

Comments
 (0)