Skip to content

coreapi: Split the interface into multiple files#4802

Merged
whyrusleeping merged 5 commits intomasterfrom
feat/coreapi/split-iface
Mar 23, 2018
Merged

coreapi: Split the interface into multiple files#4802
whyrusleeping merged 5 commits intomasterfrom
feat/coreapi/split-iface

Conversation

@magik6k
Copy link
Copy Markdown
Member

@magik6k magik6k commented Mar 10, 2018

The interface file has become quite crowed now, splitting it helps a lot.

magik6k added 4 commits March 10, 2018 18:27
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
@magik6k magik6k requested a review from Kubuxu as a code owner March 10, 2018 18:31
@ghost ghost assigned magik6k Mar 10, 2018
@ghost ghost added the status/in-progress In progress label Mar 10, 2018
This was referenced Mar 10, 2018
import "errors"

var ErrIsDir = errors.New("object is a directory")
var ErrOffline = errors.New("can't resolve, ipfs node is offline")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nitpick: var block might be cleaner here.

License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
@Kubuxu Kubuxu self-requested a review March 10, 2018 22:35
@magik6k magik6k added the topic/core-api Topic core-api label Mar 11, 2018
@Kubuxu Kubuxu requested a review from Stebalien March 12, 2018 21:18
Copy link
Copy Markdown
Member

@Stebalien Stebalien left a comment

Choose a reason for hiding this comment

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

Are there any changes here other than simply documenting and splitting things up into multiple files? Diffs make hard to to tell. If not, LGTM (although I didn't read the diff thoroughly).

@magik6k
Copy link
Copy Markdown
Member Author

magik6k commented Mar 12, 2018

The only API change other than splitting the interface into multiple files is the removal of mirrored Node/Link types - https://github.com/ipfs/go-ipfs/pull/4802/files#diff-a8303f091bce9826ba705d0eb8465cc7L30. It didn't really help with anything and only made using/implementing the api require constantly casting things.

@Kubuxu Kubuxu added this to the go-ipfs 0.4.15 milestone Mar 12, 2018
@Kubuxu Kubuxu added RFM and removed status/in-progress In progress labels Mar 12, 2018
@whyrusleeping whyrusleeping merged commit e99b91a into master Mar 23, 2018
@whyrusleeping whyrusleeping deleted the feat/coreapi/split-iface branch March 23, 2018 06:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

RFM topic/core-api Topic core-api

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants