aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/grpc/patches/22-grpc-code-output.patch
diff options
context:
space:
mode:
authormaxim-yurchuk <maxim-yurchuk@yandex-team.com>2024-10-09 12:29:46 +0300
committermaxim-yurchuk <maxim-yurchuk@yandex-team.com>2024-10-09 13:14:22 +0300
commit9731d8a4bb7ee2cc8554eaf133bb85498a4c7d80 (patch)
treea8fb3181d5947c0d78cf402aa56e686130179049 /contrib/libs/grpc/patches/22-grpc-code-output.patch
parenta44b779cd359f06c3ebbef4ec98c6b38609d9d85 (diff)
downloadydb-9731d8a4bb7ee2cc8554eaf133bb85498a4c7d80.tar.gz
publishFullContrib: true for ydb
<HIDDEN_URL> commit_hash:c82a80ac4594723cebf2c7387dec9c60217f603e
Diffstat (limited to 'contrib/libs/grpc/patches/22-grpc-code-output.patch')
-rw-r--r--contrib/libs/grpc/patches/22-grpc-code-output.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/contrib/libs/grpc/patches/22-grpc-code-output.patch b/contrib/libs/grpc/patches/22-grpc-code-output.patch
new file mode 100644
index 0000000000..885e3b6ad7
--- /dev/null
+++ b/contrib/libs/grpc/patches/22-grpc-code-output.patch
@@ -0,0 +1,17 @@
+--- a/src/core/lib/transport/metadata_batch.cc (index)
++++ b/src/core/lib/transport/metadata_batch.cc (working tree)
+@@ -26,6 +26,14 @@
+
+ #include "src/core/lib/transport/timeout_encoding.h"
+
++template<>
++void Out<grpc_status_code>(IOutputStream& os, grpc_status_code t) {
++ // We use ::ToString for convertation of status code to string,
++ // but it requries definition of the void Out<T>
++ // see util/stream/output.h for details
++ os << static_cast<int>(t);
++}
++
+ namespace grpc_core {
+ namespace metadata_detail {
+