aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordon-dron <don-dron@yandex-team.com>2024-04-10 09:07:43 +0300
committerdon-dron <don-dron@yandex-team.com>2024-04-10 09:19:58 +0300
commit20060e3d90d25b8098c71d85724212bffa068a2f (patch)
tree89ed34b5d406d99fc68b119d7e9d59a02aa4ec2e
parent41adc785d836315f9f0d47549c81bd5802a885c9 (diff)
downloadydb-20060e3d90d25b8098c71d85724212bffa068a2f.tar.gz
YT-21428: Fixes after review
f3a774faae3081b27bbf521b87eed915e53b706d
-rw-r--r--yt/yt/client/table_client/adapters.cpp2
-rw-r--r--yt/yt/client/table_client/adapters.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/yt/yt/client/table_client/adapters.cpp b/yt/yt/client/table_client/adapters.cpp
index c64915f9d6..ef72ce1216 100644
--- a/yt/yt/client/table_client/adapters.cpp
+++ b/yt/yt/client/table_client/adapters.cpp
@@ -151,7 +151,7 @@ void PipeReaderToWriter(
}
} catch (const std::exception& ex) {
if (options.ReaderErrorWrapper) {
- THROW_ERROR(options.ReaderErrorWrapper(ex));
+ THROW_ERROR options.ReaderErrorWrapper(ex);
} else {
throw;
}
diff --git a/yt/yt/client/table_client/adapters.h b/yt/yt/client/table_client/adapters.h
index bbb568582b..70b51c110c 100644
--- a/yt/yt/client/table_client/adapters.h
+++ b/yt/yt/client/table_client/adapters.h
@@ -27,7 +27,7 @@ struct TPipeReaderToWriterOptions
i64 BufferDataWeight = 16_MB;
bool ValidateValues = false;
NConcurrency::IThroughputThrottlerPtr Throttler;
- std::function<TError(const TError& readerError)> ReaderErrorWrapper;
+ std::function<TError(TError readerError)> ReaderErrorWrapper;
// Used only for testing.
TDuration PipeDelay;
};