Properly set IsOnline in NewNode

License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
This commit is contained in:
Łukasz Magiera 2019-03-28 02:08:38 +01:00 committed by Steven Allen
parent 361ba691ed
commit 65d8fad008

View File

@ -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,