1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-08-06 19:44:01 +08:00

Refactor per code climate rules

License: MIT
Signed-off-by: Michael Avila <davidmichaelavila@gmail.com>
This commit is contained in:
Michael Avila
2019-03-08 16:58:17 -08:00
parent bfcea27d39
commit dde397ebc1
7 changed files with 42 additions and 37 deletions

View File

@ -4,8 +4,10 @@ import (
cid "github.com/ipfs/go-cid"
)
// ProviderAPI brings Provider behavior to CoreAPI
type ProviderAPI CoreAPI
func (api *ProviderAPI) Provide(root cid.Cid) error {
return api.provider.Provide(root)
// Provide the given cid using the current provider
func (api *ProviderAPI) Provide(cid cid.Cid) error {
return api.provider.Provide(cid)
}