diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2025-06-19 16:38:58 +0100 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2025-06-19 16:38:58 +0100 |
| commit | d1a6d62e895acd329cb6bae51eb88eb9f290b0a4 (patch) | |
| tree | c4455844fc2e2173e6dd2bb61bcf86d0bb407a90 /src/bin/git_remote_nostr/utils.rs | |
| parent | 3598a05b98852baeb324bdaa00cb69035157f636 (diff) | |
refactor: rename ngit_relay to grasp
in function, params and variable names
Diffstat (limited to 'src/bin/git_remote_nostr/utils.rs')
| -rw-r--r-- | src/bin/git_remote_nostr/utils.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bin/git_remote_nostr/utils.rs b/src/bin/git_remote_nostr/utils.rs index ec6412b..f7e688e 100644 --- a/src/bin/git_remote_nostr/utils.rs +++ b/src/bin/git_remote_nostr/utils.rs | |||
| @@ -216,9 +216,9 @@ pub fn get_read_protocols_to_try( | |||
| 216 | git_repo: &Repo, | 216 | git_repo: &Repo, |
| 217 | server_url: &CloneUrl, | 217 | server_url: &CloneUrl, |
| 218 | decoded_nostr_url: &NostrUrlDecoded, | 218 | decoded_nostr_url: &NostrUrlDecoded, |
| 219 | is_ngit_relay: bool, | 219 | is_grasp_server: bool, |
| 220 | ) -> Vec<ServerProtocol> { | 220 | ) -> Vec<ServerProtocol> { |
| 221 | if is_ngit_relay { | 221 | if is_grasp_server { |
| 222 | if server_url.protocol() == ServerProtocol::Http { | 222 | if server_url.protocol() == ServerProtocol::Http { |
| 223 | vec![(ServerProtocol::UnauthHttp)] | 223 | vec![(ServerProtocol::UnauthHttp)] |
| 224 | } else { | 224 | } else { |
| @@ -269,9 +269,9 @@ pub fn get_write_protocols_to_try( | |||
| 269 | git_repo: &Repo, | 269 | git_repo: &Repo, |
| 270 | server_url: &CloneUrl, | 270 | server_url: &CloneUrl, |
| 271 | decoded_nostr_url: &NostrUrlDecoded, | 271 | decoded_nostr_url: &NostrUrlDecoded, |
| 272 | is_ngit_relay: bool, | 272 | is_grasp_server: bool, |
| 273 | ) -> Vec<ServerProtocol> { | 273 | ) -> Vec<ServerProtocol> { |
| 274 | if is_ngit_relay { | 274 | if is_grasp_server { |
| 275 | if server_url.protocol() == ServerProtocol::Http { | 275 | if server_url.protocol() == ServerProtocol::Http { |
| 276 | vec![(ServerProtocol::UnauthHttp)] | 276 | vec![(ServerProtocol::UnauthHttp)] |
| 277 | } else { | 277 | } else { |