resolver: Fix bugs

This commit is contained in:
Tom Wiesing 2022-10-05 17:00:53 +02:00
parent face667347
commit ce0c053fde
No known key found for this signature in database

View file

@ -79,6 +79,9 @@ func (resolver *Resolver) freshPrefixes() map[string]string {
gPrefixes := make(map[string]string)
for _, instance := range instances {
if instance.NoPrefix() {
continue
}
url := instance.URL().String()
// failed to fetch prefixes for this particular instance
@ -89,7 +92,7 @@ func (resolver *Resolver) freshPrefixes() map[string]string {
}
for _, p := range prefixes {
gPrefixes[url] = p
gPrefixes[p] = url
}
}
return gPrefixes