Skip to content

Commit

Permalink
cc grpc: move constant includes inside bundles
Browse files Browse the repository at this point in the history
commit_hash:e6b82d88171242f012082825d52c92e07d3bec7f
  • Loading branch information
Anton3 committed Nov 13, 2024
1 parent f14abe6 commit b141786
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@
#include <utility>

#include <userver/ugrpc/client/client_qos.hpp>
#include <userver/ugrpc/impl/protobuf_collector.hpp>
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <string_view>
#include <utility>

#include <userver/ugrpc/impl/protobuf_collector.hpp>
#include <userver/ugrpc/server/impl/call_utils.hpp>
#include <userver/ugrpc/server/impl/method_dispatch.hpp>
#include <userver/ugrpc/server/impl/service_worker_impl.hpp>
3 changes: 1 addition & 2 deletions scripts/grpc/templates/client.usrv.cpp.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
// This file was generated from {{ proto.source_file }}
#include "{{ proto.source_file_without_ext }}_client.usrv.pb.hpp"

{# All constant includes must go inside this header #}
#include <userver/ugrpc/impl/protobuf_collector.hpp>
{# DO NOT ADD NEW INCLUDES HERE! Add them inside codegen_definitions.hpp instead #}
#include <userver/ugrpc/client/impl/codegen_definitions.hpp>

{{ utils.include_grpcpp(proto.source_file_without_ext) }}
Expand Down
2 changes: 1 addition & 1 deletion scripts/grpc/templates/client.usrv.hpp.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// This file was generated from {{ proto.source_file }}
#pragma once

{# All constant includes must go inside this header #}
{# DO NOT ADD NEW INCLUDES HERE! Add them inside codegen_declarations.hpp instead #}
#include <userver/ugrpc/client/impl/codegen_declarations.hpp>

#include "{{ proto.source_file_without_ext }}.pb.h"
Expand Down
3 changes: 1 addition & 2 deletions scripts/grpc/templates/service.usrv.cpp.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
// This file was generated from {{ proto.source_file }}
#include "{{ proto.source_file_without_ext }}_service.usrv.pb.hpp"

{# All constant includes must go inside this header #}
#include <userver/ugrpc/impl/protobuf_collector.hpp>
{# DO NOT ADD NEW INCLUDES HERE! Add them inside codegen_definitions.hpp instead #}
#include <userver/ugrpc/server/impl/codegen_definitions.hpp>

{{ utils.include_grpcpp(proto.source_file_without_ext) }}
Expand Down
2 changes: 1 addition & 1 deletion scripts/grpc/templates/service.usrv.hpp.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// This file was generated from {{ proto.source_file }}
#pragma once

{# All constant includes must go inside this header #}
{# DO NOT ADD NEW INCLUDES HERE! Add them inside codegen_declarations.hpp instead #}
#include <userver/ugrpc/server/impl/codegen_declarations.hpp>

#include "{{ proto.source_file_without_ext }}.pb.h"
Expand Down

0 comments on commit b141786

Please sign in to comment.