diff --git a/builder.go b/builder.go index 7465898..da259af 100644 --- a/builder.go +++ b/builder.go @@ -232,7 +232,6 @@ func (k *kResolver) makeAddresses(e Endpoints) ([]resolver.Address, string) { for _, address := range subset.Addresses { newAddrs = append(newAddrs, resolver.Address{ - Type: resolver.Backend, Addr: net.JoinHostPort(address.IP, port), ServerName: fmt.Sprintf("%s.%s", k.target.serviceName, k.target.serviceNamespace), Metadata: nil, diff --git a/builder_test.go b/builder_test.go index c5a2504..776a718 100644 --- a/builder_test.go +++ b/builder_test.go @@ -41,7 +41,6 @@ func (fc *fakeConn) NewAddress(addresses []resolver.Address) { fc.found = append(fc.found, a.Addr) fmt.Printf("%d, address: %s\n", i, a.Addr) fmt.Printf("%d, servername: %s\n", i, a.ServerName) - fmt.Printf("%d, type: %+v\n", i, a.Type) } fc.cmp <- struct{}{} } @@ -63,9 +62,9 @@ func TestBuilder(t *testing.T) { if len(fc.found) == 0 { t.Fatal("could not found endpoints") } -// fmt.Printf("ResolveNow \n") -// rs.ResolveNow(resolver.ResolveNowOptions{}) -// <-fc.cmp + // fmt.Printf("ResolveNow \n") + // rs.ResolveNow(resolver.ResolveNowOptions{}) + // <-fc.cmp }