Merge pull request #2204 from fengzeroz/main

ci: clang-format
This commit is contained in:
fengzeroz
2024-09-09 10:57:45 +08:00
committed by GitHub
2 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -18,12 +18,12 @@ jobs:
submodules: recursive
- name: Run clang-format style check for C/C++ programs.
uses: DoozyX/clang-format-lint-action@v0.12
uses: DoozyX/clang-format-lint-action@v0.18
with:
source: 'src plugins include tests'
exclude: 'include/neuron/utils/uthash.h include/neuron/utils/utarray.h include/neuron/utils/utlist.h include/neuron/utils/zlog.h src/otel/trace.pb-c.h src/otel/trace.pb-c.c src/otel/resource.pb-c.h src/otel/resource.pb-c.c src/otel/common.pb-c.c src/otel/common.pb-c.h'
clangFormatVersion: 10
style: file
clangFormatVersion: 10
cppcheck:
runs-on: ubuntu-20.04
+6 -6
View File
@@ -142,12 +142,12 @@ static inline int send_read_req(neu_plugin_t *plugin, neu_json_mqtt_t *mqtt,
header.ctx = mqtt;
header.type = NEU_REQ_READ_GROUP;
// header.otel_trace_type = NEU_OTEL_TRACE_TYPE_MQTT;
neu_req_read_group_t cmd = { 0 };
cmd.driver = req->node;
cmd.group = req->group;
cmd.sync = req->sync;
req->node = NULL; // ownership moved
req->group = NULL; // ownership moved
neu_req_read_group_t cmd = { 0 };
cmd.driver = req->node;
cmd.group = req->group;
cmd.sync = req->sync;
req->node = NULL; // ownership moved
req->group = NULL; // ownership moved
if (0 != neu_plugin_op(plugin, header, &cmd)) {
neu_req_read_group_fini(&cmd);
plog_error(plugin, "neu_plugin_op(NEU_REQ_READ_GROUP) fail");