Something went wrong. Try again.
A lexicon-driven AppView for ATProto.
Something went wrong. Try again.
refactor(scripts): bundle record-event runner args into RecordEventPayload master
`run_record_event_script` and `run_record_event_once` each took the record-event context as 6 positional arguments (nsid, action, uri, did, rkey, record). Six `&str`s in a row that the type system can't help you order — easy to swap `did` and `uri` and have it compile. Introduce a `RecordEventPayload<'a>` struct so the runner reads as run_record_event_script(state, payload).await run_record_event_once(state, &resolved, payload).await Both call sites (record_handler::handle_record_event and admin::dead_letters::retry_single) updated to construct the struct literal — names instead of positions. No behavior change.
Author Chris Pardy Date (May 1, 2026, 4:00 PM UTC) Commit 7a69ffa3 7a69ffa311e409e6e5ed4d0cddadd9f833741d5b Parent e2be17ec e2be17ec34202c7fe9defbb87a1d061d34cdb7a8