Skip to content

Commit 0b129df

Browse files
author
albcui
committed
grpc.Dial -> grpc.NewClient
1 parent 585877d commit 0b129df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/agent/agent_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ func client(t *testing.T, agent *agent.Agent, tlsConfig *tls.Config) api.LogClie
126126
opts := []grpc.DialOption{grpc.WithTransportCredentials(tlsCreds)}
127127
rpcAddr, err := agent.Config.RPCAddr()
128128
require.NoError(t, err)
129-
conn, err := grpc.Dial(rpcAddr, opts...)
129+
conn, err := grpc.NewClient(rpcAddr, opts...)
130130
require.NoError(t, err)
131131
client := api.NewLogClient(conn)
132132
return client

0 commit comments

Comments
 (0)