Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Commit

Permalink
refactor: Modify → Replace
Browse files Browse the repository at this point in the history
Renaming to match naming convention in
https://ipfs.github.io/pinning-services-api-spec/
  • Loading branch information
lidel committed Nov 30, 2020
1 parent 34aa0b8 commit 39c1054
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,7 @@ func (c *Client) DeleteByID(ctx context.Context, pinID string) error {
return nil
}

// TODO: Remove? (not sure what is the purpose of this - it just adds pin, does not modify nro replace anything)
func (c *Client) Modify(ctx context.Context, pinID string, cid cid.Cid, opts ...AddOption) (PinStatusGetter, error) {
func (c *Client) Replace(ctx context.Context, pinID string, cid cid.Cid, opts ...AddOption) (PinStatusGetter, error) {
settings := new(addSettings)
for _, o := range opts {
if err := o(settings); err != nil {
Expand Down

0 comments on commit 39c1054

Please sign in to comment.