Browse Source

Fix otel includes in .clangd

pull/4/head
Adam Ierymenko 7 months ago
parent
commit
41c4642a21
No known key found for this signature in database
GPG Key ID: C8877CF2D7A5D7F3
  1. 1
      .clangd
  2. 5
      service/OneService.cpp

1
.clangd

@ -7,3 +7,4 @@ CompileFlags:
- "-I./ext"
- "-I./ext/prometheus-cpp-lite-1.0/core/include"
- "-I./ext/prometheus-cpp-lite-1.0/simpleapi/include"
- "-I./ext/opentelemetry-cpp-1.21.0/api/include/"

5
service/OneService.cpp

@ -2851,13 +2851,14 @@ class OneServiceImpl : public OneService {
std::string linkSelectMethodStr;
if (customPolicy.contains("linkSelectMethod")) {
linkSelectMethodStr = OSUtils::jsonString(customPolicy["linkSelectMethod"], "always");
} else {
}
else {
linkSelectMethodStr = OSUtils::jsonString(customPolicy["activeReselect"], "always");
if (customPolicy.contains("activeReselect")) {
fprintf(stderr, "warning: 'activeReselect' is deprecated, please use 'linkSelectMethod' instead in policy '%s'\n", customPolicyStr.c_str());
}
}
if (linkSelectMethodStr == "always") {
newTemplateBond->setLinkSelectMethod(ZT_BOND_RESELECTION_POLICY_ALWAYS);
}

Loading…
Cancel
Save