mirror of
https://github.com/coredns/coredns.git
synced 2025-11-01 02:33:14 -04:00
@@ -20,14 +20,12 @@ func (a *assignment) SetClusterLoadAssignment(cluster string, cla *xdspb.Cluster
|
||||
defer a.mu.Unlock()
|
||||
_, ok := a.cla[cluster]
|
||||
if !ok {
|
||||
log.Debugf("Adding cluster %q", cluster)
|
||||
a.cla[cluster] = cla
|
||||
return
|
||||
}
|
||||
if cla == nil {
|
||||
return
|
||||
}
|
||||
log.Debugf("Updating cluster %q", cluster)
|
||||
a.cla[cluster] = cla
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user