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...)
|
||||
}
|
||||
|
||||
@@ -835,7 +835,7 @@ var svcIndex = map[string][]*object.Service{
|
||||
func (APIConnServeTest) SvcIndex(s string) []*object.Service { return svcIndex[s] }
|
||||
|
||||
func (APIConnServeTest) ServiceList() []*object.Service {
|
||||
var svcs []*object.Service
|
||||
svcs := make([]*object.Service, 0, len(svcIndex))
|
||||
for _, svc := range svcIndex {
|
||||
svcs = append(svcs, svc...)
|
||||
}
|
||||
@@ -1012,7 +1012,7 @@ var svcImportIndex = map[string][]*object.ServiceImport{
|
||||
func (APIConnServeTest) SvcImportIndex(s string) []*object.ServiceImport { return svcImportIndex[s] }
|
||||
|
||||
func (APIConnServeTest) ServiceImportList() []*object.ServiceImport {
|
||||
var svcs []*object.ServiceImport
|
||||
svcs := make([]*object.ServiceImport, 0, len(svcImportIndex))
|
||||
for _, svc := range svcImportIndex {
|
||||
svcs = append(svcs, svc...)
|
||||
}
|
||||
@@ -1118,7 +1118,7 @@ func (APIConnServeTest) McEpIndex(s string) []*object.MultiClusterEndpoints {
|
||||
}
|
||||
|
||||
func (APIConnServeTest) MultiClusterEndpointsList() []*object.MultiClusterEndpoints {
|
||||
var eps []*object.MultiClusterEndpoints
|
||||
eps := make([]*object.MultiClusterEndpoints, 0, len(mcEpsIndex))
|
||||
for _, ep := range mcEpsIndex {
|
||||
eps = append(eps, ep...)
|
||||
}
|
||||
@@ -1126,7 +1126,7 @@ func (APIConnServeTest) MultiClusterEndpointsList() []*object.MultiClusterEndpoi
|
||||
}
|
||||
|
||||
func (APIConnServeTest) EndpointsList() []*object.Endpoints {
|
||||
var eps []*object.Endpoints
|
||||
eps := make([]*object.Endpoints, 0, len(epsIndex))
|
||||
for _, ep := range epsIndex {
|
||||
eps = append(eps, ep...)
|
||||
}
|
||||
|
||||
@@ -88,7 +88,7 @@ func TestKubernetesIXFRCurrent(t *testing.T) {
|
||||
t.Error(err)
|
||||
}
|
||||
|
||||
var gotRRs []dns.RR
|
||||
var gotRRs []dns.RR //nolint:prealloc // records are read from a channel
|
||||
for rrs := range ch {
|
||||
gotRRs = append(gotRRs, rrs...)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user