Skip to content

Commit

Permalink
disabled autoupdate
Browse files Browse the repository at this point in the history
  • Loading branch information
Yrp committed Oct 28, 2021
1 parent 9f846a6 commit 96029c0
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions cmd/btfs/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -371,15 +371,6 @@ func daemonFunc(req *cmds.Request, re cmds.ResponseEmitter, env cmds.Environment
log.Errorf("To disable this multiplexer, please configure `Swarm.Transports.Multiplexers'.")
}

// Btfs auto update.
url := fmt.Sprint(strings.Split(cfg.Addresses.API[0], "/")[2], ":", strings.Split(cfg.Addresses.API[0], "/")[4])

if !cfg.Experimental.DisableAutoUpdate {
go update(url, hValue)
} else {
fmt.Println("Auto-update was disabled as config Experimental.DisableAutoUpdate was set as True")
}

// Start assembling node config
ncfg := &core.BuildCfg{
Repo: repo,
Expand Down

0 comments on commit 96029c0

Please sign in to comment.