|
18 | 18 | #include <viam/api/common/v1/common.pb.h> |
19 | 19 |
|
20 | 20 | #include <viam/sdk/common/private/utils.hpp> |
21 | | -#include <viam/sdk/common/private/version_metadata.hpp> |
22 | 21 | #include <viam/sdk/components/component.hpp> |
23 | 22 | #include <viam/sdk/registry/registry.hpp> |
24 | 23 |
|
@@ -151,37 +150,6 @@ ProtoStruct with_debug_entry(ProtoStruct&& map) { |
151 | 150 | return map; |
152 | 151 | } |
153 | 152 |
|
154 | | -ClientContext::ClientContext() : wrapped_context_(std::make_unique<grpc::ClientContext>()) { |
155 | | - set_client_ctx_authority_(); |
156 | | - add_viam_client_version_(); |
157 | | -} |
158 | | - |
159 | | -ClientContext::~ClientContext() = default; |
160 | | - |
161 | | -ClientContext::operator const grpc::ClientContext*() const { |
162 | | - return wrapped_context_.get(); |
163 | | -} |
164 | | - |
165 | | -ClientContext::operator grpc::ClientContext*() { |
166 | | - return wrapped_context_.get(); |
167 | | -} |
168 | | - |
169 | | -void ClientContext::try_cancel() { |
170 | | - wrapped_context_->TryCancel(); |
171 | | -} |
172 | | - |
173 | | -void ClientContext::set_debug_key(const std::string& debug_key) { |
174 | | - wrapped_context_->AddMetadata("dtname", debug_key); |
175 | | -} |
176 | | - |
177 | | -void ClientContext::set_client_ctx_authority_() { |
178 | | - wrapped_context_->set_authority("viam-placeholder"); |
179 | | -} |
180 | | - |
181 | | -void ClientContext::add_viam_client_version_() { |
182 | | - wrapped_context_->AddMetadata("viam_client", impl::k_version); |
183 | | -} |
184 | | - |
185 | 153 | bool from_dm_from_extra(const ProtoStruct& extra) { |
186 | 154 | auto pos = extra.find("fromDataManagement"); |
187 | 155 | if (pos != extra.end()) { |
|
0 commit comments