File tree Expand file tree Collapse file tree 5 files changed +7
-7
lines changed
drivers/devices/cpu/flowunit
data_source_parser/parser_plugin/restful_source_parser
output_broker/broker_plugin/webhook_output_broker
modelbox/server/plugin/editor Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ modelbox::Status RestfulSourceParser::GetRestfulInfo(
119119
120120 if (config_json.contains (" headers" )) {
121121 auto value = config_json[" headers" ].get <nlohmann::json>();
122- for (auto &header : value.items ()) {
122+ for (const auto &header : value.items ()) {
123123 if (header.key ().empty ()) {
124124 MBLOG_ERROR << " headers key is empty!" ;
125125 return modelbox::STATUS_BADCONF;
Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ modelbox::Status WebhookOutputBroker::ParseConfig(
196196 MBLOG_DEBUG << " url: " << output_info->url ;
197197
198198 auto value = json[" headers" ].get <nlohmann::json>();
199- for (auto &header : value.items ()) {
199+ for (const auto &header : value.items ()) {
200200 if (header.key ().empty ()) {
201201 MBLOG_ERROR << " headers key is empty!" ;
202202 return modelbox::STATUS_BADCONF;
Original file line number Diff line number Diff line change @@ -529,7 +529,7 @@ void ModelboxEditorPlugin::HandlerGraphModifyTime(
529529modelbox::Status ModelboxEditorPlugin::GenerateCommandFromJson (
530530 const nlohmann::json& body, std::string& cmd) {
531531 nlohmann::json error_json;
532- for (auto & element : body.items ()) {
532+ for (const auto & element : body.items ()) {
533533 cmd += " -" + element.key ();
534534 if (element.value ().is_null ()) {
535535 continue ;
@@ -548,7 +548,7 @@ modelbox::Status ModelboxEditorPlugin::GenerateCommandFromJson(
548548 cmd += " " ;
549549 }
550550
551- for (auto & i : port.items ()) {
551+ for (const auto & i : port.items ()) {
552552 cmd += i.key () + " =" + i.value ().dump ();
553553 if (i != port.items ().end ()) {
554554 cmd += " ," ;
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ ExternalProject_Add(
8585# nlohmann json
8686ExternalProject_Add(
8787 nlohmann
88- URL @LOCAL_PACKAGE_PATH@/v3.7.3 .tar.gz
88+ URL @LOCAL_PACKAGE_PATH@/v3.11.2 .tar.gz
8989 SOURCE_DIR ${THIRDPARTY_DOWNLOAD_DIR}/nlohmann
9090 CONFIGURE_COMMAND ""
9191 BUILD_COMMAND ""
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ if (NOT @USE_CN_MIRROR@)
3333 set(TINYLOG_DOWNLOAD_URL "https://github.com/pymumu/tinylog/archive/refs/tags/v1.6.zip")
3434 set(PYBIND11_DOWNLOAD_URL "https://github.com/pybind/pybind11/archive/refs/tags/v2.9.1.zip")
3535 set(TOML11_DOWNLOAD_URL "https://github.com/ToruNiina/toml11/archive/refs/tags/v3.7.1.zip")
36- set(NLOHMANN_DOWNLOAD_URL "https://github.com/nlohmann/json/releases/download/v3.7.3 /include.zip")
36+ set(NLOHMANN_DOWNLOAD_URL "https://github.com/nlohmann/json/releases/download/v3.11.2 /include.zip")
3737 set(CPP_HTTPLIB_DOWNLOAD_URL "https://github.com/yhirose/cpp-httplib/archive/refs/tags/v0.10.4.zip")
3838 set(APIGW_CPP_SDK_DOWNLOAD_URL "https://github.com/modelbox-ai/modelbox-binary/releases/download/BinaryArchive/APIGW-cpp-sdk.zip")
3939 set(MODELBOX_WEBUI_DOWNLOAD_URL "https://github.com/modelbox-ai/modelbox-webui/archive/refs/tags/0.1.3.zip")
4444 set(TINYLOG_DOWNLOAD_URL "https://ghproxy.com/github.com/pymumu/tinylog/archive/refs/tags/v1.6.zip")
4545 set(PYBIND11_DOWNLOAD_URL "https://gitcode.net/mirrors/pybind/pybind11/-/archive/v2.9.1/pybind11-v2.9.1.zip")
4646 set(TOML11_DOWNLOAD_URL "https://ghproxy.com/github.com/ToruNiina/toml11/archive/refs/tags/v3.7.1.zip")
47- set(NLOHMANN_DOWNLOAD_URL "https://gitcode.net/mirrors/nlohmann/json/-/archive/v3.7.3/json-v3.7.3 .zip")
47+ set(NLOHMANN_DOWNLOAD_URL "https://gitcode.net/mirrors/nlohmann/json/-/archive/v3.7.3/json-v3.11.2 .zip")
4848 set(CPP_HTTPLIB_DOWNLOAD_URL "https://gitcode.net/mirrors/yhirose/cpp-httplib/-/archive/v0.10.4/cpp-httplib-v0.10.4.zip")
4949 set(APIGW_CPP_SDK_DOWNLOAD_URL "https://obs.cn-north-1.myhuaweicloud.com/apig-sdk/APIGW-cpp-sdk.zip")
5050 set(MODELBOX_WEBUI_DOWNLOAD_URL "https://gitee.com/modelbox/modelbox-webui/repository/archive/tags/0.1.3.zip")
You can’t perform that action at this time.
0 commit comments