mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-09 18:28:08 +08:00
refactor(core): rename
This commit is contained in:
parent
91808e18f7
commit
7fa5d81093
@ -92,11 +92,11 @@ var errTODO = errors.New("TODO")
|
||||
type ConfigOption func(ctx context.Context) (*IpfsNode, error)
|
||||
|
||||
func NewIPFSNode(ctx context.Context, option ConfigOption) (*IpfsNode, error) {
|
||||
config, err := option(ctx)
|
||||
node, err := option(ctx)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return config, nil
|
||||
return node, nil
|
||||
}
|
||||
|
||||
func Offline(cfg *config.Config) ConfigOption {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user