Nits
This commit is contained in:
parent
c5d2459752
commit
1f6d8cc53c
|
@ -716,7 +716,7 @@ func (config *Config) loadSource(proxy *Proxy, requiredProps stamps.ServerInform
|
|||
dlog.Criticalf("Unable to retrieve source [%s]: [%s]", cfgSourceName, err)
|
||||
return err
|
||||
}
|
||||
dlog.Infof("Downloading [%s] failed: %v, use cache file to startup", source.name, err)
|
||||
dlog.Infof("Downloading [%s] failed: %v, using cache file to startup", source.name, err)
|
||||
}
|
||||
proxy.sources = append(proxy.sources, source)
|
||||
registeredServers, err := source.Parse(cfgSource.Prefix)
|
||||
|
|
|
@ -211,7 +211,7 @@ func PrefetchSources(xTransport *XTransport, sources []*Source) time.Duration {
|
|||
}
|
||||
dlog.Debugf("Prefetching [%s]", source.name)
|
||||
if delay, err := source.fetchWithCache(xTransport, now); err != nil {
|
||||
dlog.Infof("Prefetching [%s] failed: %v, retry after %v", source.name, err, interval)
|
||||
dlog.Infof("Prefetching [%s] failed: %v, will retry in %v", source.name, err, interval)
|
||||
} else {
|
||||
dlog.Debugf("Prefetching [%s] succeeded, next update: %v", source.name, delay)
|
||||
if delay >= MinimumPrefetchInterval && (interval == MinimumPrefetchInterval || interval > delay) {
|
||||
|
|
Loading…
Reference in New Issue