UrlList: func() []string {
ret := make([]string, 0, len(t.webSeeds))
for url := range t.webSeeds {
- ret = append(ret, unique.Handle[string](url).Value())
+ ret = append(ret, url.Value())
}
return ret
}(),
webseedUrlKey unique.Handle[string]
)
+func (me webseedUrlKey) Value() string {
+ return unique.Handle[string](me).Value()
+}
+
+func (me webseedUrlKey) String() string {
+ return me.Value()
+}
+
/*
- Go through all the requestable pieces in order of priority, availability, whether there are peer requests, partial, infohash.
- For each piece calculate files involved. Record each file not seen before and the piece index.