@cryptotaxi247 / kubo / commits / 65d8fad00

Properly set IsOnline in NewNode

License: MIT Signed-off-by: Łukasz Magiera <magik6k@gmail.com>

Łukasz Magiera committed Mar 28, 2019 at 02:08 UTC 65d8fad008f42322c83cd3bfd91f354f90f09d66
1 file changed +2 -1
core/builder.go
+2 -1
@@ -155,7 +155,6 @@ func NewNode(ctx context.Context, cfg *BuildCfg) (*IpfsNode, error) {
155 return cfg
156 })
157
158 -
158 params := fx.Options(
159 repoOption,
160 cfgOption,
@@ -227,6 +226,8 @@ func NewNode(ctx context.Context, cfg *BuildCfg) (*IpfsNode, error) {
226 fx.Extract(n),
227 )
228
229 + n.IsOnline = cfg.Online
230 +
231 /* n := &IpfsNode{
232 IsOnline: cfg.Online,
233 Repo: cfg.Repo,