Skip to content

Commit

Permalink
fix: remove usage of deprecated Type attribute of resolver.Address
Browse files Browse the repository at this point in the history
The type attribute has been removed in more recent versions of gRPC. The usage here is not required and the may be removed.

See: grpc/grpc-go#6451
  • Loading branch information
KnutZuidema committed Sep 19, 2023
1 parent 71e851e commit a53e945
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions builder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}{}
}
Expand All @@ -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

}

Expand Down

0 comments on commit a53e945

Please sign in to comment.