Skip to content

feat: add async provide on share/copy/pin/ipns #2387

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

lidel
Copy link
Member

@lidel lidel commented Jul 21, 2025

This PR dispatches one-time extra announce of the root CID when sharing, copying CIDs, pinning, or publishing to IPNS.

Rationale

Providing this CID costs us virtually nothing, but will improve performance when content is accessed by others shortly after these operations by ensuring we are as close to the desired number of Amino DHT peers with provider records as possible, and also that there ARE provider records for the root CID in the DHT in the first place.

The latter especially helps desktop users, who may share a CID that has not been provided yet due to the node being offline for a while and starting IPFS Desktop recently, with Kubo having many CIDs to announce.

dispatches one-time extra announce of the root CID
when sharing, copying CIDs, pinning, or publishing to IPNS.

improves performance when content is accessed
by others shortly after these operations
by ensuring we are as close to max number of DHT peers
with provider record as possible
@lidel lidel requested review from SgtPooki and 2color July 21, 2025 17:17
@lidel lidel requested a review from a team as a code owner July 21, 2025 17:17
@lidel lidel mentioned this pull request Jul 15, 2025
37 tasks
Copy link
Member

@SgtPooki SgtPooki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm but a few minor changes requested

@lidel lidel requested a review from SgtPooki July 24, 2025 18:29
@lidel lidel deployed to Deploy July 24, 2025 18:31 — with GitHub Actions Active
@lidel
Copy link
Member Author

lidel commented Jul 24, 2025

@SgtPooki applied suggested changes – ok to merge?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants