defer leecher.Close()
testutil.ExportStatusWriter(leecher, "l")
cfg.Seed = false
- // cfg.TorrentDataOpener = nil
cfg.DataDir, err = ioutil.TempDir("", "")
require.NoError(t, err)
defer os.RemoveAll(cfg.DataDir)
// Override Client defaults.
type Config struct {
- // Store torrent file data in this directory unless TorrentDataOpener is
+ // Store torrent file data in this directory unless .DefaultStorage is
// specified.
DataDir string `long:"data-dir" description:"directory to store downloaded torrent data"`
// The address to listen for new uTP and TCP bittorrent protocol