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

fix: find equivalent cids also if not car cid #327

Merged
merged 3 commits into from
Feb 7, 2024

Conversation

vasco-santos
Copy link
Contributor

@vasco-santos vasco-santos commented Feb 7, 2024

We should keep also equivalent CIDs that are not CARs to attempt in the bucket to get presigned URL

We will try for each of them to check if it is in bucket and generate presigned URL per:

Copy link

seed-deploy bot commented Feb 7, 2024

View stack outputs

export async function findEquivalentCarCids (piece, fetchClaims = createClaimsClientForEnv()) {
/** @type {Set<CARLink>} */
export async function findEquivalentCids (piece, fetchClaims = createClaimsClientForEnv()) {
/** @type {Set<import('multiformats').UnknownLink>} */
const cids = new Set()
Copy link
Member

Choose a reason for hiding this comment

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

Hmm, I think this is not going to dedupe like you think it will.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, I also think this set will probably not guarantee . will create an issue, as this was like it and look after

roundabout/piece.js Outdated Show resolved Hide resolved
Co-authored-by: Alan Shaw <alan.shaw@protocol.ai>
@seed-deploy seed-deploy bot temporarily deployed to pr327 February 7, 2024 14:46 Inactive
@vasco-santos vasco-santos merged commit ad803d8 into main Feb 7, 2024
3 checks passed
@vasco-santos vasco-santos deleted the fix/find-equivalent-cids-also-if-not-car-cid branch February 7, 2024 14:52
Copy link

sentry-io bot commented Feb 7, 2024

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ Error: unexpected service status: 502 prod-w3infra-RoundaboutSt-roundabouthttpgateway... View Issue

Did you find this useful? React with a 👍 or 👎

@vasco-santos
Copy link
Contributor Author

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