Skip to content
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

Improve IPFS client selection #5723

Merged
merged 1 commit into from
Jan 8, 2025
Merged

Conversation

isum
Copy link
Member

@isum isum commented Dec 3, 2024

This PR improves IPFS client selection by sending concurrent requests to all supported IPFS APIs and selecting the first one that responds with the expected status code.

Also, logging of IPFS test request retries has been disabled to not make it look like something is not working correctly.

@isum isum added the area/ipfs label Dec 3, 2024
@isum isum self-assigned this Dec 3, 2024
@fordN fordN requested a review from incrypto32 January 6, 2025 16:43
server_address: server_address.parse()?,
reason: anyhow!("unknown server kind"),
});
clients.push(use_first_valid_api(server_address, logger).await?);
Copy link
Member

Choose a reason for hiding this comment

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

NICE!

Copy link
Member

@incrypto32 incrypto32 left a comment

Choose a reason for hiding this comment

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

LGTM

@isum isum force-pushed the ion/improve-ipfs-client-selection branch from d06830b to e681d8d Compare January 8, 2025 19:52
@isum isum merged commit 453bcea into master Jan 8, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants