]> Sergey Matveev's repositories - btrtrc.git/blobdiff - torrent.go
Merge branch 'master' into crawshaw
[btrtrc.git] / torrent.go
index 6a24820bd6e8b3914b680e4e4205a1b77daf7f79..9791b9305a9baa0683ca2682cdc417b396173940 100644 (file)
@@ -147,6 +147,10 @@ type Torrent struct {
 
        // Is On when all pieces are complete.
        Complete chansync.Flag
+
+       // Torrent sources in use keyed by the source string.
+       activeSources sync.Map
+       sourcesLogger log.Logger
 }
 
 func (t *Torrent) selectivePieceAvailabilityFromPeers(i pieceIndex) (count int) {
@@ -2315,7 +2319,7 @@ func (t *Torrent) addWebSeed(url string) {
                        callbacks:       t.callbacks(),
                },
                client: webseed.Client{
-                       HttpClient: t.cl.webseedHttpClient,
+                       HttpClient: t.cl.httpClient,
                        Url:        url,
                        ResponseBodyWrapper: func(r io.Reader) io.Reader {
                                return &rateLimitedReader{