Skip to content

Commit

Permalink
Testing rust, c++ vs python3.12 BUILD Bob Build (25)
Browse files Browse the repository at this point in the history
  • Loading branch information
spirillen committed Jan 18, 2025
1 parent d0aee79 commit 645e516
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
1 change: 0 additions & 1 deletion source/coinblocker/rpz-ip.csv
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
#
11 changes: 7 additions & 4 deletions tools/sort_lists_project/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,13 @@ fn get_modified_files_in_last_commit() -> Vec<String> {

fn fetch_valid_tlds(proxy: Option<&str>) -> HashSet<String> {
let client = match proxy {
Some(p) => Client::builder()
.proxy(Proxy::all(p).expect("Invalid proxy URL"))
.build()
.expect("Failed to build client with proxy"),
Some(p) => {
if let Ok(proxy) = Proxy::all(p) {
Client::builder().proxy(proxy).build().expect("Failed to build client with proxy")
} else {
Client::new()
}
},
None => Client::new(),
};

Expand Down

0 comments on commit 645e516

Please sign in to comment.