Fix mentions of TorrentDataOpener

This commit is contained in:
Matt Joiner 2018-01-11 17:11:54 +11:00
parent fe9839f818
commit 89ea4c0e29
2 changed files with 1 additions and 2 deletions

View File

@ -459,7 +459,6 @@ func TestSeedAfterDownloading(t *testing.T) {
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)

View File

@ -27,7 +27,7 @@ var DefaultHTTPUserAgent = "Go-Torrent/1.0"
// 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