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 firehose example #258

Merged
merged 2 commits into from
Nov 23, 2024
Merged

Fix firehose example #258

merged 2 commits into from
Nov 23, 2024

Conversation

Uinelj
Copy link
Contributor

@Uinelj Uinelj commented Nov 21, 2024

the firehose example currently transitively has dependencies on two versions of cid: v0.10.1 and v0.11.1, which have different types for Cid.

This PR doesn't fix the root issue (haven't had the time to drill down), but adds a newtype + a dependency on the example to convert from the old cid to the new cid.
It's merely a band-aid but I think it's important to keep examples working, as it is a great way of getting started.

Thanks a lot for the library btw :)

@sugyan
Copy link
Owner

sugyan commented Nov 23, 2024

Thank you for the smart fix!

I remember that the root cause was that ATrium requires cid 0.11 because it uses ipld-core, but rs-car, which is used to parse CAR files, uses cid 0.10.
It would be ideal if rs-car would be updated to use the ipld-core cid, but I think this fix is sufficient for now!

@sugyan sugyan merged commit a225fe6 into sugyan:main Nov 23, 2024
13 checks passed
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