Support HTTP/2.0 (#7204)

Fixes #6704
This commit is contained in:
Harshavardhana authored and kannappanr committed 2019-02-14 17:53:46 -08:00
1 parent 8a405cab2f
commit 396d78352d
13 files changed
+117 -635

No files matched your search

+6 -1
View File
@@ -268,9 +268,14 @@ func NewRPCClient(args RPCClientArgs) (*RPCClient, error) {
return nil, err
}
rpcClient, err := xrpc.NewClient(args.ServiceURL, args.TLSConfig, defaultRPCTimeout)
if err != nil {
return nil, err
}
return &RPCClient{
args: args,
authToken: args.NewAuthTokenFunc(),
rpcClient: xrpc.NewClient(args.ServiceURL, args.TLSConfig, defaultRPCTimeout),
rpcClient: rpcClient,
}, nil
}