Move things down for clarity
This commit is contained in:
parent
1ca7597c7f
commit
7ed4ce17d7
|
@ -142,10 +142,10 @@ func NewSource(xTransport *XTransport, url string, minisignKeyStr string, cacheF
|
||||||
now := time.Now()
|
now := time.Now()
|
||||||
urlsToPrefetch := []URLToPrefetch{}
|
urlsToPrefetch := []URLToPrefetch{}
|
||||||
|
|
||||||
sigURL := url + ".minisig"
|
|
||||||
in, cached, delayTillNextUpdate, err := fetchWithCache(xTransport, url, cacheFile)
|
in, cached, delayTillNextUpdate, err := fetchWithCache(xTransport, url, cacheFile)
|
||||||
urlsToPrefetch = append(urlsToPrefetch, URLToPrefetch{url: url, cacheFile: cacheFile, when: now.Add(delayTillNextUpdate)})
|
urlsToPrefetch = append(urlsToPrefetch, URLToPrefetch{url: url, cacheFile: cacheFile, when: now.Add(delayTillNextUpdate)})
|
||||||
|
|
||||||
|
sigURL := url + ".minisig"
|
||||||
sigCacheFile := cacheFile + ".minisig"
|
sigCacheFile := cacheFile + ".minisig"
|
||||||
sigStr, sigCached, sigDelayTillNextUpdate, sigErr := fetchWithCache(xTransport, sigURL, sigCacheFile)
|
sigStr, sigCached, sigDelayTillNextUpdate, sigErr := fetchWithCache(xTransport, sigURL, sigCacheFile)
|
||||||
urlsToPrefetch = append(urlsToPrefetch, URLToPrefetch{url: sigURL, cacheFile: sigCacheFile, when: now.Add(sigDelayTillNextUpdate)})
|
urlsToPrefetch = append(urlsToPrefetch, URLToPrefetch{url: sigURL, cacheFile: sigCacheFile, when: now.Add(sigDelayTillNextUpdate)})
|
||||||
|
|
Loading…
Reference in New Issue