refactor: batch paykit contact cleanup#638
Open
ben-kaufman wants to merge 2 commits into
Open
Conversation
ben-kaufman
marked this pull request as ready for review
July 22, 2026 09:32
Greptile SummaryThis PR batches Paykit contact cleanup work to reduce repeated SDK calls. The main changes are:
Confidence Score: 4/5The batch-wide linked-peer failure path can leave stale endpoints without a cleanup retry.
Bitkit/Services/PrivatePaykitService+Contacts.swift
|
| Filename | Overview |
|---|---|
| Bitkit/Services/PrivatePaykitService+Contacts.swift | Batches linked-peer reads and message draining while preserving per-contact cleanup state, but the shared lookup failure path can omit cleanup and retries. |
Reviews (1): Last reviewed commit: "refactor: batch paykit contact cleanup" | Re-trigger Greptile
ben-kaufman
force-pushed
the
codex/paykit-incoming-payment-requests
branch
from
July 22, 2026 13:01
ee9a95c to
ae345b3
Compare
ben-kaufman
force-pushed
the
codex/batch-paykit-contact-cleanup
branch
from
July 22, 2026 13:01
be606b0 to
1b7bc5e
Compare
ben-kaufman
force-pushed
the
codex/paykit-incoming-payment-requests
branch
from
July 22, 2026 14:09
ae345b3 to
778f6d0
Compare
ben-kaufman
force-pushed
the
codex/batch-paykit-contact-cleanup
branch
from
July 22, 2026 14:11
1b7bc5e to
4e8c5a4
Compare
ben-kaufman
force-pushed
the
codex/paykit-incoming-payment-requests
branch
from
July 22, 2026 15:34
778f6d0 to
9dcc431
Compare
ben-kaufman
force-pushed
the
codex/batch-paykit-contact-cleanup
branch
from
July 22, 2026 15:36
4e8c5a4 to
0dd87ec
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR builds on #637 to address the Paykit cleanup performance follow-ups from #620:
No user-facing behavior changes are intended.
Linked Issues/Tasks
Screenshot / Video
N/A — service-only refactor.
QA Notes
Manual Tests
N/A
Automated Checks
PrivatePaykitServiceTests.swift: all 10 focused tests passed in the iOS simulator.git diff --checkpassed.