Skip to content

Commit

Permalink
Merge pull request #5922 from ipfs/feat/coreapi/dag-ipld
Browse files Browse the repository at this point in the history
coreapi: replace coreiface.DagAPI with ipld.DAGService
  • Loading branch information
Stebalien authored Jan 21, 2019
2 parents 0fd7374 + eb23c90 commit 2e83a0a
Show file tree
Hide file tree
Showing 9 changed files with 100 additions and 319 deletions.
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

0 comments on commit 2e83a0a

Please sign in to comment.