Commit 7fa5d810 authored by Brian Tiger Chow's avatar Brian Tiger Chow

refactor(core): rename

parent 91808e18
......@@ -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 {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment