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

pin: use separate dagservice for storing pinsets #3103

Merged
merged 1 commit into from
Aug 21, 2016

Conversation

whyrusleeping
Copy link
Member

License: MIT
Signed-off-by: Jeromy why@ipfs.io

License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
@@ -171,13 +171,15 @@ func setupNode(ctx context.Context, n *IpfsNode, cfg *BuildCfg) error {

n.Blocks = bserv.New(n.Blockstore, n.Exchange)
n.DAG = dag.NewDAGService(n.Blocks)
n.Pinning, err = pin.LoadPinner(n.Repo.Datastore(), n.DAG)

internalDag := dag.NewDAGService(bserv.New(n.Blockstore, offline.Exchange(n.Blockstore)))
Copy link
Member

Choose a reason for hiding this comment

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

We are using offline DAG service in many plances, maybe we should create helper function for that?

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah, thats probably a good idea

@whyrusleeping whyrusleeping added the need/review Needs a review label Aug 20, 2016
@Kubuxu
Copy link
Member

Kubuxu commented Aug 20, 2016

LGTM if we want to refactor the offline DAG service later.

@whyrusleeping
Copy link
Member Author

Yeah, lets do that refactor later. Its going to touch a lot of files and i prefer to keep PRs focused

@whyrusleeping whyrusleeping merged commit 19779b3 into master Aug 21, 2016
@whyrusleeping whyrusleeping deleted the feat/pin/no-prov-internal branch August 21, 2016 01:46
@whyrusleeping whyrusleeping removed the status/in-progress In progress label Aug 21, 2016
@ghost ghost mentioned this pull request Dec 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need/review Needs a review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants