diff --git a/client/main.go b/client/main.go index 2524057..73d6333 100644 --- a/client/main.go +++ b/client/main.go @@ -13,7 +13,7 @@ import ( func main() { consul.FindServer() ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second) - conn, err := grpc.DialContext(ctx, "consul://192.168.8.254:8500/demo", grpc.WithBlock(), grpc.WithInsecure()) + conn, err := grpc.DialContext(ctx, "consul://192.168.8.254:8500/demo", grpc.WithBlock(), grpc.WithInsecure(), grpc.WithBalancerName("round_robin")) if err != nil { cancel() }