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

Add Pinata IPFS support, reuse task-runner classes #4

Merged
merged 3 commits into from
Sep 26, 2022
Merged

Conversation

cyberj0g
Copy link
Contributor

Adds IPFS support through Pinata API (#3). I reused base.go and ipfs.go from task-runner with insignificant modifications. TODO: remove these files from task-runner, as go-tools is already a dependency.

Copy link

@red-0ne red-0ne left a comment

Choose a reason for hiding this comment

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

Great work. Added few comments and questions, otherwise LGTM.

drivers/ipfs.go Outdated Show resolved Hide resolved
drivers/ipfs.go Outdated
}

func (ostore *IpfsSession) ListFiles(ctx context.Context, dir, delim string) (PageInfo, error) {
panic("Listing is not supported by Pinata IPFS driver")
Copy link

Choose a reason for hiding this comment

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

Can we return a single file listing or something from PinList here instead of panicking?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it's hard to make meaningful listing function for IPFS, so I implemented 'get by CID' semantics into it.

drivers/ipfs_test.go Show resolved Hide resolved
drivers/ipfs.go Outdated Show resolved Hide resolved
@leszko
Copy link
Contributor

leszko commented Sep 26, 2022

@cyberj0g could you please remove me or @victorges from the reviewers? I think 2 reviewers are enough for this PR. Thanks!

@leszko leszko closed this Sep 26, 2022
@leszko leszko reopened this Sep 26, 2022
@cyberj0g
Copy link
Contributor Author

cyberj0g commented Sep 26, 2022

@leszko sure, but aren't we normally request review from anyone who familiar with project or technology, so least booked person could volunteer and the rest could ignore the request completely?

@leszko
Copy link
Contributor

leszko commented Sep 26, 2022

@leszko sure, but aren't we normally request review from anyone who familiar with project or technology, so least booked person could volunteer and the rest could ignore the request completely?

No, that's not the case. Please check: https://www.notion.so/livepeer/PR-Review-Guidelines-63ef679c091943139367cf632bd5c6aa

@cyberj0g
Copy link
Contributor Author

I think we never had time to properly discuss these guidelines, my opinion is that some points are a bit too far from open source flow for an open source project. But alright, it's better than too vague process, let's follow that.

@cyberj0g cyberj0g merged commit 2ebcbb5 into main Sep 26, 2022
@hjpotter92 hjpotter92 deleted the ip/ipfs branch February 7, 2023 14:53
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.

3 participants