diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2025-08-07 08:41:39 +0100 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2025-08-07 17:25:54 +0100 |
| commit | afaa472196059bbfbd41a39b23d8ffb4c28d0805 (patch) | |
| tree | 50994a45a13a718d41ca56ffbb749f2695540ea4 /src/bin/git_remote_nostr/fetch.rs | |
| parent | b61ce3469057be9e081ceb01d3a42337ace6a7c4 (diff) | |
refactor: rename fn `is_grasp_server_in_list`
to make it's purpose clearer
Diffstat (limited to 'src/bin/git_remote_nostr/fetch.rs')
| -rw-r--r-- | src/bin/git_remote_nostr/fetch.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/git_remote_nostr/fetch.rs b/src/bin/git_remote_nostr/fetch.rs index 221d964..2cc87da 100644 --- a/src/bin/git_remote_nostr/fetch.rs +++ b/src/bin/git_remote_nostr/fetch.rs | |||
| @@ -18,7 +18,7 @@ use ngit::{ | |||
| 18 | }, | 18 | }, |
| 19 | git_events::{KIND_PULL_REQUEST, KIND_PULL_REQUEST_UPDATE, tag_value}, | 19 | git_events::{KIND_PULL_REQUEST, KIND_PULL_REQUEST_UPDATE, tag_value}, |
| 20 | login::get_curent_user, | 20 | login::get_curent_user, |
| 21 | repo_ref::{RepoRef, is_grasp_server}, | 21 | repo_ref::{RepoRef, is_grasp_server_in_list}, |
| 22 | utils::{ | 22 | utils::{ |
| 23 | Direction, find_proposal_and_patches_by_branch_name, get_oids_from_fetch_batch, | 23 | Direction, find_proposal_and_patches_by_branch_name, get_oids_from_fetch_batch, |
| 24 | get_open_or_draft_proposals, get_read_protocols_to_try, join_with_and, | 24 | get_open_or_draft_proposals, get_read_protocols_to_try, join_with_and, |
| @@ -96,7 +96,7 @@ pub async fn run_fetch( | |||
| 96 | git_server_url, | 96 | git_server_url, |
| 97 | &repo_ref.to_nostr_git_url(&None), | 97 | &repo_ref.to_nostr_git_url(&None), |
| 98 | &term, | 98 | &term, |
| 99 | is_grasp_server(git_server_url, &repo_ref.grasp_servers()), | 99 | is_grasp_server_in_list(git_server_url, &repo_ref.grasp_servers()), |
| 100 | ) { | 100 | ) { |
| 101 | errors.push(error); | 101 | errors.push(error); |
| 102 | } | 102 | } |