From 65d8fad008f42322c83cd3bfd91f354f90f09d66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Thu, 28 Mar 2019 02:08:38 +0100 Subject: [PATCH] Properly set IsOnline in NewNode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit License: MIT Signed-off-by: Ɓukasz Magiera --- core/builder.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/builder.go b/core/builder.go index 6f94e8f9a..8c073a39c 100644 --- a/core/builder.go +++ b/core/builder.go @@ -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,