Skip to content

Commit

Permalink
Merge pull request #256 from TRON-US/release-head-dc-fix
Browse files Browse the repository at this point in the history
[BTFS-1121] fix: missing --dc flag overwrite config issue
  • Loading branch information
laipogo authored Nov 26, 2019
2 parents 5f801bc + 20981fa commit 54f71ec
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmd/btfs/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -446,8 +446,10 @@ func daemonFunc(req *cmds.Request, re cmds.ResponseEmitter, env cmds.Environment
}

//Begin sending analytics to hosted server
collectData, _ := req.Options[enableDataCollection].(bool)
node.Repo.SetConfigKey("Experimental.Analytics", collectData)
// set Analytics flag if specified
if dc, ok := req.Options[enableDataCollection]; ok == true {
node.Repo.SetConfigKey("Experimental.Analytics", dc)
}
analytics.Initialize(node, version.CurrentVersionNumber, hValue)

// Give the user some immediate feedback when they hit C-c
Expand Down

0 comments on commit 54f71ec

Please sign in to comment.