diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2025-07-15 11:05:44 +0100 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2025-07-15 11:05:44 +0100 |
| commit | 8d42d8c3e8e65ff1892effa2d1058d9f2422ce2b (patch) | |
| tree | d10dd24a781a68095566d9f26da0ffca86b85f51 /src/bin/git_remote_nostr | |
| parent | 78f28284dac5d6521f0308f49c16646b17bad483 (diff) | |
feat: add git timeout
to improve reliability
Diffstat (limited to 'src/bin/git_remote_nostr')
| -rw-r--r-- | src/bin/git_remote_nostr/main.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bin/git_remote_nostr/main.rs b/src/bin/git_remote_nostr/main.rs index 29731e2..cf47a30 100644 --- a/src/bin/git_remote_nostr/main.rs +++ b/src/bin/git_remote_nostr/main.rs | |||
| @@ -16,7 +16,7 @@ use client::{Connect, consolidate_fetch_reports, get_repo_ref_from_cache}; | |||
| 16 | use git::{RepoActions, nostr_url::NostrUrlDecoded}; | 16 | use git::{RepoActions, nostr_url::NostrUrlDecoded}; |
| 17 | use ngit::{ | 17 | use ngit::{ |
| 18 | client::{self, Params}, | 18 | client::{self, Params}, |
| 19 | git, | 19 | git::{self, utils::set_git_timeout}, |
| 20 | login::existing::load_existing_login, | 20 | login::existing::load_existing_login, |
| 21 | }; | 21 | }; |
| 22 | use nostr::nips::nip19::Nip19Coordinate; | 22 | use nostr::nips::nip19::Nip19Coordinate; |
| @@ -62,6 +62,8 @@ async fn main() -> Result<()> { | |||
| 62 | 62 | ||
| 63 | repo_ref.set_nostr_git_url(decoded_nostr_url.clone()); | 63 | repo_ref.set_nostr_git_url(decoded_nostr_url.clone()); |
| 64 | 64 | ||
| 65 | let _ = set_git_timeout(); | ||
| 66 | |||
| 65 | let stdin = io::stdin(); | 67 | let stdin = io::stdin(); |
| 66 | let mut line = String::new(); | 68 | let mut line = String::new(); |
| 67 | 69 | ||