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:
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user