Merge pull request #34222 from ClickHouse/add-const-in-grpc-server

Add const to make clang-tidy happy
This commit is contained in:
alexey-milovidov 2022-02-01 16:25:15 +03:00 committed by GitHub
commit c3a68561dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -754,7 +754,7 @@ namespace
// Parse the OpenTelemetry traceparent header.
ClientInfo client_info = session->getClientInfo();
auto & client_metadata = responder->grpc_context.client_metadata();
const auto & client_metadata = responder->grpc_context.client_metadata();
auto traceparent = client_metadata.find("traceparent");
if (traceparent != client_metadata.end())
{