mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 10:27:46 +08:00
Properly set IsOnline in NewNode
License: MIT Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
This commit is contained in:
parent
361ba691ed
commit
65d8fad008
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user