diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-01-07 23:27:55 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-01-07 23:27:55 +0000 |
| commit | 4dc0ed66a0bd3b4b00804bb13adf93b207bb5fc4 (patch) | |
| tree | 32f083e87f2666bd0cf384205db198848cd87a8e /src | |
| parent | fba872909559c42ac48b6acd697e61ab987e0f71 (diff) | |
fix: refs/nostr/<event-id> gets removed after 30m if no event arrives
we forgot to add the placeholder entry
Diffstat (limited to 'src')
| -rw-r--r-- | src/git/authorization.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/git/authorization.rs b/src/git/authorization.rs index e7ea99b..fbddb98 100644 --- a/src/git/authorization.rs +++ b/src/git/authorization.rs | |||
| @@ -134,8 +134,13 @@ pub async fn authorize_push( | |||
| 134 | e | 134 | e |
| 135 | ))); | 135 | ))); |
| 136 | } | 136 | } |
| 137 | |||
| 138 | // Create placeholder for git-data-first scenario | ||
| 139 | // This allows cleanup if the PR event never arrives | ||
| 140 | purgatory.add_pr_placeholder(event_id_hex.to_string(), new_oid.clone()); | ||
| 141 | |||
| 137 | debug!( | 142 | debug!( |
| 138 | "No purgatory entry for {} - validated against database", | 143 | "Created placeholder for {} - awaiting PR event (will expire in 30min if event doesn't arrive)", |
| 139 | event_id_hex | 144 | event_id_hex |
| 140 | ); | 145 | ); |
| 141 | } | 146 | } |