aboutsummaryrefslogtreecommitdiff
path: root/test/postgres/producer.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/postgres/producer.go')
-rw-r--r--test/postgres/producer.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/postgres/producer.go b/test/postgres/producer.go
index ecaea6344..2d49519e8 100644
--- a/test/postgres/producer.go
+++ b/test/postgres/producer.go
@@ -299,7 +299,7 @@ func discoverFiler(masterHTTPAddress string) (string, error) {
httpAddr := pb.ServerAddress(masterHTTPAddress)
masterGRPCAddress := httpAddr.ToGrpcAddress()
- conn, err := grpc.Dial(masterGRPCAddress, grpc.WithTransportCredentials(insecure.NewCredentials()))
+ conn, err := grpc.NewClient(masterGRPCAddress, grpc.WithTransportCredentials(insecure.NewCredentials()))
if err != nil {
return "", fmt.Errorf("failed to connect to master at %s: %v", masterGRPCAddress, err)
}
@@ -334,7 +334,7 @@ func discoverBroker(masterHTTPAddress string) (string, error) {
return "", fmt.Errorf("failed to discover filer: %v", err)
}
- conn, err := grpc.Dial(filerAddress, grpc.WithTransportCredentials(insecure.NewCredentials()))
+ conn, err := grpc.NewClient(filerAddress, grpc.WithTransportCredentials(insecure.NewCredentials()))
if err != nil {
return "", fmt.Errorf("failed to connect to filer at %s: %v", filerAddress, err)
}