Skip to content

Commit 629604d

Browse files
author
hiddenpath
committed
YT-23616: Add implementation of method for creating rpc client
commit_hash:5854a0271a0a2a26dc9891ff1502889edbf38a18
1 parent fd0d7fe commit 629604d

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

yt/cpp/mapreduce/client/client.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,9 +507,13 @@ class TClient
507507

508508
////////////////////////////////////////////////////////////////////////////////
509509

510+
TClientContext CreateClientContext(
511+
const TString& serverName,
512+
const TCreateClientOptions& options);
513+
510514
TClientPtr CreateClientImpl(
511515
const TString& serverName,
512-
const TCreateClientOptions& options = TCreateClientOptions());
516+
const TCreateClientOptions& options = {});
513517

514518
////////////////////////////////////////////////////////////////////////////////
515519

yt/cpp/mapreduce/interface/client.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -572,16 +572,14 @@ class IClient
572572
virtual void Shutdown() = 0;
573573
};
574574

575-
576575
/// Create a client for particular MapReduce cluster.
577576
IClientPtr CreateClient(
578577
const TString& serverName,
579-
const TCreateClientOptions& options = TCreateClientOptions());
580-
578+
const TCreateClientOptions& options = {});
581579

582580
/// Create a client for mapreduce cluster specified in `YT_PROXY` environment variable.
583581
IClientPtr CreateClientFromEnv(
584-
const TCreateClientOptions& options = TCreateClientOptions());
582+
const TCreateClientOptions& options = {});
585583

586584
////////////////////////////////////////////////////////////////////////////////
587585

0 commit comments

Comments
 (0)