upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/bin/ngit/sub_commands/create.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2026-02-18 08:00:18 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2026-02-18 13:01:00 +0000
commit10f5dd5f48659d6e99abc762d46be397d24b48d9 (patch)
tree1c344dfabb9b0416dfcc165f54b1b2ab94d21308 /src/bin/ngit/sub_commands/create.rs
parent3d4918fea3280fd6653ad138160aa7327ab9b36e (diff)
poll grasp servers for readiness instead of fixed 5s wait
Replace arbitrary 5-second countdown with active polling of grasp servers during ngit init. Servers are checked every 1s with a 7s timeout (2s in tests). Shows progress like '1/2 grasp servers ready'. Grasp servers return 404 until the repo is provisioned, so we poll until they accept git connections. Proceeds anyway on timeout rather than failing, since some servers may still be initializing.
Diffstat (limited to 'src/bin/ngit/sub_commands/create.rs')
0 files changed, 0 insertions, 0 deletions