diff options
| author | don-dron <[email protected]> | 2024-04-10 09:07:43 +0300 |
|---|---|---|
| committer | don-dron <[email protected]> | 2024-04-10 09:19:58 +0300 |
| commit | 20060e3d90d25b8098c71d85724212bffa068a2f (patch) | |
| tree | 89ed34b5d406d99fc68b119d7e9d59a02aa4ec2e | |
| parent | 41adc785d836315f9f0d47549c81bd5802a885c9 (diff) | |
YT-21428: Fixes after review
f3a774faae3081b27bbf521b87eed915e53b706d
| -rw-r--r-- | yt/yt/client/table_client/adapters.cpp | 2 | ||||
| -rw-r--r-- | yt/yt/client/table_client/adapters.h | 2 |
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 c64915f9d68..ef72ce12163 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 bbb568582b9..70b51c110c5 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; }; |
