diff options
author | chapson <chapson@yandex-team.ru> | 2022-02-10 16:47:43 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:43 +0300 |
commit | 1f559aadf65bf79622a7e2bfb1f76440a7758bf8 (patch) | |
tree | 2b431a3d9e0c137780d9083e60a416f34098cdc6 /contrib/libs | |
parent | 330c83f8c116bd45316397b179275e9d87007e7d (diff) | |
download | ydb-1f559aadf65bf79622a7e2bfb1f76440a7758bf8.tar.gz |
Restoring authorship annotation for <chapson@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/libs')
4 files changed, 13 insertions, 13 deletions
diff --git a/contrib/libs/grpc/src/core/ext/filters/http/client/http_client_filter.cc b/contrib/libs/grpc/src/core/ext/filters/http/client/http_client_filter.cc index f5f18474da..ff2857cfeb 100644 --- a/contrib/libs/grpc/src/core/ext/filters/http/client/http_client_filter.cc +++ b/contrib/libs/grpc/src/core/ext/filters/http/client/http_client_filter.cc @@ -39,7 +39,7 @@ #include "src/core/lib/slice/slice_internal.h" #include "src/core/lib/slice/slice_string_helpers.h" #include "src/core/lib/transport/static_metadata.h" -#include "src/core/lib/transport/status_conversion.h" +#include "src/core/lib/transport/status_conversion.h" #include "src/core/lib/transport/transport_impl.h" #define EXPECTED_CONTENT_TYPE "application/grpc" @@ -129,8 +129,8 @@ static grpc_error* client_filter_incoming_metadata(grpc_metadata_batch* b) { GRPC_ERROR_CREATE_FROM_STATIC_STRING( "Received http2 :status header with non-200 OK status"), GRPC_ERROR_STR_VALUE, grpc_slice_from_copied_string(val)), - GRPC_ERROR_INT_GRPC_STATUS, - grpc_http2_status_to_grpc_status(atoi(val))), + GRPC_ERROR_INT_GRPC_STATUS, + grpc_http2_status_to_grpc_status(atoi(val))), GRPC_ERROR_STR_GRPC_MESSAGE, grpc_slice_from_cpp_string(std::move(msg))); gpr_free(val); diff --git a/contrib/libs/grpc/src/core/ext/transport/chttp2/transport/chttp2_transport.cc b/contrib/libs/grpc/src/core/ext/transport/chttp2/transport/chttp2_transport.cc index 180ca62543..ee9005c7df 100644 --- a/contrib/libs/grpc/src/core/ext/transport/chttp2/transport/chttp2_transport.cc +++ b/contrib/libs/grpc/src/core/ext/transport/chttp2/transport/chttp2_transport.cc @@ -2457,8 +2457,8 @@ static grpc_error* try_http_parsing(grpc_chttp2_transport* t) { grpc_error_set_int(GRPC_ERROR_CREATE_FROM_STATIC_STRING( "Trying to connect an http1.x server"), GRPC_ERROR_INT_HTTP_STATUS, response.status), - GRPC_ERROR_INT_GRPC_STATUS, - grpc_http2_status_to_grpc_status(response.status)); + GRPC_ERROR_INT_GRPC_STATUS, + grpc_http2_status_to_grpc_status(response.status)); } GRPC_ERROR_UNREF(parse_error); diff --git a/contrib/libs/grpc/src/core/lib/transport/status_conversion.cc b/contrib/libs/grpc/src/core/lib/transport/status_conversion.cc index 46c6cd8c3b..2b6a74c7ff 100644 --- a/contrib/libs/grpc/src/core/lib/transport/status_conversion.cc +++ b/contrib/libs/grpc/src/core/lib/transport/status_conversion.cc @@ -68,21 +68,21 @@ grpc_status_code grpc_http2_status_to_grpc_status(int status) { case 200: return GRPC_STATUS_OK; case 400: - return GRPC_STATUS_INTERNAL; + return GRPC_STATUS_INTERNAL; case 401: return GRPC_STATUS_UNAUTHENTICATED; case 403: return GRPC_STATUS_PERMISSION_DENIED; case 404: - return GRPC_STATUS_UNIMPLEMENTED; + return GRPC_STATUS_UNIMPLEMENTED; case 429: - return GRPC_STATUS_UNAVAILABLE; - case 502: - return GRPC_STATUS_UNAVAILABLE; + return GRPC_STATUS_UNAVAILABLE; + case 502: + return GRPC_STATUS_UNAVAILABLE; case 503: return GRPC_STATUS_UNAVAILABLE; case 504: - return GRPC_STATUS_UNAVAILABLE; + return GRPC_STATUS_UNAVAILABLE; /* everything else is unknown */ default: return GRPC_STATUS_UNKNOWN; diff --git a/contrib/libs/grpc/src/python/grpcio_status/ya.make b/contrib/libs/grpc/src/python/grpcio_status/ya.make index 61a3ee4336..d9d3822e88 100644 --- a/contrib/libs/grpc/src/python/grpcio_status/ya.make +++ b/contrib/libs/grpc/src/python/grpcio_status/ya.make @@ -12,7 +12,7 @@ OWNER( ) PEERDIR( - contrib/python/google-api-core + contrib/python/google-api-core contrib/libs/grpc/grpc contrib/python/six ) @@ -43,7 +43,7 @@ PY_SRCS( TOP_LEVEL grpc_status/__init__.py grpc_status/_common.py - grpc_status/rpc_status.py + grpc_status/rpc_status.py ) IF (PYTHON3) |