in pkg/registry/clients.go [63:76]
func (c *metricClients) removeClient(sourceName string) (empty bool) {
found := -1
for i, s := range *c {
if s.GetConfiguration().Name == sourceName {
found = i
break
}
}
if found != -1 {
*c = append((*c)[:found], (*c)[found+1:]...)
sort.Sort(c)
}
return c.Len() == 0
}