mirror of
https://github.com/minio/minio.git
synced 2025-11-26 04:26:12 -05:00
committed by
kannappanr
parent
8a405cab2f
commit
396d78352d
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user