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

feat: Curio support #1914

Closed
wants to merge 4 commits into from
Closed

feat: Curio support #1914

wants to merge 4 commits into from

Conversation

magik6k
Copy link
Collaborator

@magik6k magik6k commented Apr 29, 2024

This PR implements some things needed for Curio to talk to boost; Not sure how I managed to not PR this before.

@magik6k magik6k changed the title Feat/init lp support feat: Curio support Apr 29, 2024
Copy link
Collaborator

@LexLuthr LexLuthr left a comment

Choose a reason for hiding this comment

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

I am not sure about why need some of these changes.

@@ -167,3 +179,158 @@ func NewPieceDoctor(cfg *config.Boost) func(lc fx.Lifecycle, maddr lotus_dtypes.
return doc
}
}

type boostPieceStoreWrapper struct {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why do we need this wrapper in Boost?

return fmt.Errorf("getting reader over piece %s: %w", pieceCid, err)
var reader types.SectionReader

reader, err := os.OpenFile(inFile, os.O_RDONLY, 0)
Copy link
Collaborator

Choose a reason for hiding this comment

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

This will result in incorrect offset for CIDs. We read from pieceReader because we need exact location in the unsealed copy to get the data back.

@LexLuthr
Copy link
Collaborator

@magik6k #1918 supersedes this PR. Can we close this?

@magik6k magik6k closed this May 16, 2024
@LexLuthr LexLuthr deleted the feat/init-lp-support branch July 25, 2024 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants