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

coreapi: replace coreiface.DagAPI with ipld.DAGService #5922

Merged
merged 1 commit into from
Jan 21, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions core/coreapi/coreapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ func (api *CoreAPI) Block() coreiface.BlockAPI {
}

// Dag returns the DagAPI interface implementation backed by the go-ipfs node
func (api *CoreAPI) Dag() coreiface.DagAPI {
return (*DagAPI)(api)
func (api *CoreAPI) Dag() ipld.DAGService {
return api.dag
}

// Name returns the NameAPI interface implementation backed by the go-ipfs node
Expand Down
132 changes: 0 additions & 132 deletions core/coreapi/dag.go

This file was deleted.

2 changes: 1 addition & 1 deletion core/coreapi/interface/coreapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type CoreAPI interface {
Block() BlockAPI

// Dag returns an implementation of Dag API
Dag() DagAPI
Dag() ipld.DAGService

// Name returns an implementation of Name API
Name() NameAPI
Expand Down
41 changes: 0 additions & 41 deletions core/coreapi/interface/dag.go

This file was deleted.

95 changes: 0 additions & 95 deletions core/coreapi/interface/options/dag.go

This file was deleted.

Loading