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

ipfsproxy: use PinPath to match IPFS behaviour #690

Merged
merged 1 commit into from Mar 4, 2019

Conversation

hsanjuan
Copy link
Collaborator

@hsanjuan hsanjuan commented Mar 1, 2019

License: MIT
Signed-off-by: Hector Sanjuan hector@protocol.ai

@ghost ghost assigned hsanjuan Mar 1, 2019
@ghost ghost added the status/in-progress In progress label Mar 1, 2019
@hsanjuan hsanjuan mentioned this pull request Mar 1, 2019
Copy link
Contributor

@kishansagathiya kishansagathiya left a comment

Choose a reason for hiding this comment

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

LGTM, except two comments

test/rpc_api_mock.go Outdated Show resolved Hide resolved
@@ -55,8 +55,8 @@ func (rpcapi *RPCAPI) PinPath(ctx context.Context, in *api.PinPath, out *api.Pin
}

// UnpinPath resolves path into a cid and runs Cluster.Unpin().
func (rpcapi *RPCAPI) UnpinPath(ctx context.Context, in string, out *api.Pin) error {
pin, err := rpcapi.c.UnpinPath(ctx, in)
func (rpcapi *RPCAPI) UnpinPath(ctx context.Context, in *api.PinPath, out *api.Pin) error {
Copy link
Contributor

Choose a reason for hiding this comment

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

How can unpin utilize pinOptions?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

it doesn't, but for parallelism (allows using same code to call pin/unpin) and if at some point in history we can unpin with options it's marginally better this way.

@hsanjuan hsanjuan force-pushed the feat/proxy-with-pinpath branch 2 times, most recently from f81edea to e4cd17b Compare March 4, 2019 15:27
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
@hsanjuan hsanjuan merged commit fb837f1 into master Mar 4, 2019
@hsanjuan hsanjuan deleted the feat/proxy-with-pinpath branch March 4, 2019 18:01
@ghost ghost removed the status/in-progress In progress label Mar 4, 2019
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.

None yet

3 participants