Commit 65d8fad0 authored by Łukasz Magiera's avatar Łukasz Magiera Committed by Steven Allen

Properly set IsOnline in NewNode

License: MIT
Signed-off-by: default avatarŁukasz Magiera <magik6k@gmail.com>
parent 361ba691
......@@ -155,7 +155,6 @@ func NewNode(ctx context.Context, cfg *BuildCfg) (*IpfsNode, error) {
return cfg
})
params := fx.Options(
repoOption,
cfgOption,
......@@ -227,6 +226,8 @@ func NewNode(ctx context.Context, cfg *BuildCfg) (*IpfsNode, error) {
fx.Extract(n),
)
n.IsOnline = cfg.Online
/* n := &IpfsNode{
IsOnline: cfg.Online,
Repo: cfg.Repo,
......
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