docs for core builder NewNode method
License: MIT Signed-off-by: ForrestWeston <forrest@protocol.ai>
ForrestWeston committed
Jan 22, 2018 at 14:41 UTC
e5f2f56b6cdc9187a2bbbd353beec27c45dfcca8
1 file changed
+1
core/builder.go
+1
@@ -115,6 +115,7 @@ func defaultRepo(dstore repo.Datastore) (repo.Repo, error) {
115
}, nil
116
}
117
118
+// NewNode constructs and returns an IpfsNode using the given cfg.
119
func NewNode(ctx context.Context, cfg *BuildCfg) (*IpfsNode, error) {
120
if cfg == nil {
121
cfg = new(BuildCfg)