Skip to content

Commit

Permalink
updated some configs
Browse files Browse the repository at this point in the history
  • Loading branch information
lizhencortex committed Jun 26, 2019
1 parent 55c5d50 commit 8ab1e47
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 8ab1e47

Please sign in to comment.