Skip to content

Commit

Permalink
update: async dial in client of k8s example to prevent panic if serve…
Browse files Browse the repository at this point in the history
…rs start after the client.
  • Loading branch information
Xavier Zhao committed Feb 3, 2021
1 parent e3182ac commit 5b622f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/k8s/client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func init() {

resolver.Register(discov.NewBuilder(discov.WithDNSPollingInterval(time.Second)))

greetingClientConn, err := grpc.Dial("discov://dns/greeting-svc:8080", grpc.WithBlock(), grpc.WithInsecure())
greetingClientConn, err := grpc.Dial("discov://dns/greeting-svc:8080", grpc.WithInsecure())
if err != nil {
panic(err)
}
Expand Down

0 comments on commit 5b622f5

Please sign in to comment.