Skip to content

Improve IPFS client selection#5723

Merged
isum merged 1 commit into
masterfrom
ion/improve-ipfs-client-selection
Jan 8, 2025
Merged

Improve IPFS client selection#5723
isum merged 1 commit into
masterfrom
ion/improve-ipfs-client-selection

Conversation

@isum

@isum isum commented Dec 3, 2024

Copy link
Copy Markdown
Member

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
Comment thread graph/src/ipfs/mod.rs
server_address: server_address.parse()?,
reason: anyhow!("unknown server kind"),
});
clients.push(use_first_valid_api(server_address, logger).await?);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

NICE!

@incrypto32 incrypto32 left a comment

Copy link
Copy Markdown
Member

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
@isum
isum deleted the ion/improve-ipfs-client-selection branch February 12, 2025 14:44
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