in pkg/registry/clients.go [47:61]
func (c *metricClients) addOrUpdateClient(metricClient client.Interface) {
found := -1
for i, s := range *c {
if s.GetConfiguration().Name == metricClient.GetConfiguration().Name {
found = i
break
}
}
if found != -1 {
(*c)[found] = metricClient
} else {
*c = append(*c, metricClient)
}
sort.Sort(c)
}