mirror of
https://github.com/coredns/coredns.git
synced 2026-02-17 12:43:09 -05:00
chore: bump Go version to 1.26.0 (#7856)
This commit is contained in:
@@ -105,7 +105,7 @@ func (external) EpIndex(s string) []*object.Endpoints {
|
||||
}
|
||||
|
||||
func (external) EndpointsList() []*object.Endpoints {
|
||||
var eps []*object.Endpoints
|
||||
eps := make([]*object.Endpoints, 0, len(epIndexExternal))
|
||||
for _, ep := range epIndexExternal {
|
||||
eps = append(eps, ep...)
|
||||
}
|
||||
@@ -189,7 +189,7 @@ var svcIndexExternal = map[string][]*object.Service{
|
||||
}
|
||||
|
||||
func (external) ServiceList() []*object.Service {
|
||||
var svcs []*object.Service
|
||||
svcs := make([]*object.Service, 0, len(svcIndexExternal))
|
||||
for _, svc := range svcIndexExternal {
|
||||
svcs = append(svcs, svc...)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user