-
Notifications
You must be signed in to change notification settings - Fork 2
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
Conversation
There was a problem hiding this 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
} | ||
|
||
func (ostore *IpfsSession) ListFiles(ctx context.Context, dir, delim string) (PageInfo, error) { | ||
panic("Listing is not supported by Pinata IPFS driver") |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
@cyberj0g could you please remove me or @victorges from the reviewers? I think 2 reviewers are enough for this PR. Thanks! |
@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 |
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. |
Adds IPFS support through Pinata API (#3). I reused
base.go
andipfs.go
from task-runner with insignificant modifications. TODO: remove these files fromtask-runner
, asgo-tools
is already a dependency.