diff options
author | Sami Hiltunen <shiltunen@gitlab.com> | 2021-03-31 11:03:10 +0300 |
---|---|---|
committer | Sami Hiltunen <shiltunen@gitlab.com> | 2021-03-31 12:32:15 +0300 |
commit | d18db0d43fe923d5ac1efa53b07b92c6b19a5cb5 (patch) | |
tree | 08553c1cce463339936cb8a36a19b6ade16a5fe9 /client | |
parent | 1c19762f3a2fbec4dc586e38ecd5f746fa1a3690 (diff) |
inject a handshaker in client package's Dial
Praefect needs to provide a custom handshaker to use when establishing
a connection to Gitaly in order to set up the multiplexed connection.
This commit allows for injecting a handshaker into the Dial function
to perform the custom handshake.
Diffstat (limited to 'client')
-rw-r--r-- | client/dial.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/dial.go b/client/dial.go index 2886ed534..79a7b7e14 100644 --- a/client/dial.go +++ b/client/dial.go @@ -21,7 +21,7 @@ var DefaultDialOpts = []grpc.DialOption{} // connOpts should not contain `grpc.WithInsecure` as DialContext determines whether it is needed or not from the // scheme. `grpc.TransportCredentials` should not be provided either as those are handled internally as well. func DialContext(ctx context.Context, rawAddress string, connOpts []grpc.DialOption) (*grpc.ClientConn, error) { - return client.Dial(ctx, rawAddress, connOpts, false, nil) + return client.Dial(ctx, rawAddress, connOpts, nil) } // Dial calls DialContext with the provided arguments and context.Background. Refer to DialContext's documentation |