Skip to content

Commit

Permalink
do not export fetcher or dagwriter via CoreAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
aschmahmann committed Aug 12, 2021
1 parent d6deb42 commit 5801c34
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions core/coreapi/coreapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,19 +113,6 @@ func (api *CoreAPI) Dag() coreiface.APIDagService {
}
}

type nodeAPI struct {
fetcher.Factory
dagwriter.DagWritingService
}

// Node returns the Node interface implementation backed by the go-ipfs node
func (api *CoreAPI) Node() coreiface.NodeAPI {
return &nodeAPI{
api.fetcherFactory,
api.dagWriter,
}
}

// Name returns the NameAPI interface implementation backed by the go-ipfs node
func (api *CoreAPI) Name() coreiface.NameAPI {
return (*NameAPI)(api)
Expand Down

0 comments on commit 5801c34

Please sign in to comment.