Skip to content

Commit

Permalink
delete comment and space
Browse files Browse the repository at this point in the history
  • Loading branch information
takara9 committed Jun 6, 2024
1 parent 9a32b80 commit 03f1aed
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions clustering/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,10 @@ func (f defaultAgentFactory) New(ctx context.Context, cluster *mocov1beta2.MySQL
Time: 1 * time.Minute,
}
cred := credentials.NewTLS(f.reloader.TLSClientConfig())
/*
"grpc.WithBlock() DialOption" is deleted in NewClient
Please see, https://pkg.go.dev/google.golang.org/grpc#WithBlock
this DialOption is not supported by NewClient. Will be supported throughout 1.x.
*/
conn, err := grpc.NewClient(addr,
grpc.WithAuthority(cluster.PodHostname(index)),
grpc.WithTransportCredentials(cred),
grpc.WithKeepaliveParams(kp))

if err != nil {
return agentConn{}, err
}
Expand Down

0 comments on commit 03f1aed

Please sign in to comment.