Skip to content

Commit c26ee68

Browse files
thokra-navsechmann
andcommittedJun 13, 2024··
Remove use of deprecated function
Co-authored-by: Vegar Sechmann Molvig <vegar.sechmann.molvig@nav.no>
1 parent b1a1480 commit c26ee68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎cmd/test-client/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func main() {
7070
}
7171

7272
cred := credentials.NewTLS(&tls.Config{})
73-
conn, err := grpc.DialContext(ctx, server, grpc.WithTransportCredentials(cred), grpc.WithPerRPCCredentials(interceptor))
73+
conn, err := grpc.NewClient(server, grpc.WithTransportCredentials(cred), grpc.WithPerRPCCredentials(interceptor))
7474
if err != nil {
7575
log.Errorf("connecting to grpc server: %v", err)
7676
}

0 commit comments

Comments
 (0)
Please sign in to comment.