Skip to content

Commit

Permalink
Merge pull request #192 from CortexFoundation/dev-zhen-v1
Browse files Browse the repository at this point in the history
updated some configs
  • Loading branch information
SiNZeRo authored Jun 26, 2019
2 parents 55c5d50 + 8ab1e47 commit 9ca9e29
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/utils/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -1211,7 +1211,11 @@ func SetTorrentFsConfig(ctx *cli.Context, cfg *torrentfs.Config) {
log.Info("IPCPath", "path", cfg.IpcPath)
}
trackers := ctx.GlobalString(StorageTrackerFlag.Name)
boostnodes := ctx.GlobalString(StorageBoostNodesFlag.Name)
cfg.DefaultTrackers = strings.Split(trackers, ",")
cfg.BoostNodes = strings.Split(boostnodes, ",")
cfg.MaxSeedingNum = ctx.GlobalInt(StorageMaxSeedingFlag.Name)
cfg.MaxActiveNum = ctx.GlobalInt(StorageMaxActiveFlag.Name)
cfg.SyncMode = ctx.GlobalString(SyncModeFlag.Name)
cfg.DataDir = MakeStorageDir(ctx)
}
Expand Down

0 comments on commit 9ca9e29

Please sign in to comment.