aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorabcdef <akotov@ydb.tech>2023-10-25 11:02:57 +0300
committerabcdef <akotov@ydb.tech>2023-10-25 11:26:23 +0300
commitde8dece8d6b0d36e11cc0a2aaf254f203d7eb778 (patch)
tree0bb639558e1555ac0b05af315f3f4bcb478e6b60
parent61f7d797b4be074a20d2c902139b5f6c9725a897 (diff)
downloadydb-de8dece8d6b0d36e11cc0a2aaf254f203d7eb778.tar.gz
unnecessary check whether the topic exists
Удалил проверку существует ли топик в командах `topic (read|write)`
-rw-r--r--ydb/public/lib/ydb_cli/commands/ydb_service_topic.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/ydb/public/lib/ydb_cli/commands/ydb_service_topic.cpp b/ydb/public/lib/ydb_cli/commands/ydb_service_topic.cpp
index 3ed181201f..a55d81c6d9 100644
--- a/ydb/public/lib/ydb_cli/commands/ydb_service_topic.cpp
+++ b/ydb/public/lib/ydb_cli/commands/ydb_service_topic.cpp
@@ -676,9 +676,6 @@ namespace {
std::make_unique<TDriver>(CreateDriver(config, CreateLogBackend("cerr", TClientCommand::TConfig::VerbosityLevelToELogPriority(config.VerbosityLevel))));
NTopic::TTopicClient topicClient(*driver);
- auto topicDescription = topicClient.DescribeTopic(TopicName, {}).GetValueSync();
- ThrowOnError(topicDescription);
-
auto readSession = topicClient.CreateReadSession(PrepareReadSessionSettings());
{
@@ -808,9 +805,6 @@ namespace {
std::make_unique<TDriver>(CreateDriver(config, CreateLogBackend("cerr", TClientCommand::TConfig::VerbosityLevelToELogPriority(config.VerbosityLevel))));
NTopic::TTopicClient topicClient(*driver);
- auto topicDescription = topicClient.DescribeTopic(TopicName, {}).GetValueSync();
- ThrowOnError(topicDescription);
-
{
auto writeSession = NTopic::TTopicClient(*driver).CreateWriteSession(std::move(PrepareWriteSessionSettings()));
auto writer =