mirror of
https://github.com/emqx/neuron.git
synced 2026-10-18 21:50:42 +08:00
Fix error of clang-format and remove sudo in dev.yml
This commit is contained in:
@@ -33,8 +33,8 @@ jobs:
|
||||
- name: Start neuron
|
||||
run: |
|
||||
git submodule update --init --remote
|
||||
sudo apt install -y cmake ninja-build libgtest-dev libssl-dev
|
||||
sudo ./install-libs.sh -a
|
||||
apt install -y cmake ninja-build libgtest-dev libssl-dev
|
||||
./install-libs.sh -a
|
||||
mkdir build && cd build && cmake .. && make
|
||||
|
||||
- name: Run function test
|
||||
|
||||
@@ -91,8 +91,8 @@ neu_taggrp_config_t *neu_system_find_group_config(neu_plugin_t *plugin,
|
||||
neu_node_id_t node_id,
|
||||
const char * name);
|
||||
neu_taggrp_config_t *neu_system_ref_group_config(neu_plugin_t *plugin,
|
||||
neu_node_id_t node_id,
|
||||
const char * name);
|
||||
neu_node_id_t node_id,
|
||||
const char * name);
|
||||
// uninit vector
|
||||
vector_t neu_system_get_group_configs(neu_plugin_t *plugin,
|
||||
neu_node_id_t node_id);
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
if (error_code.error != NEU_ERR_SUCCESS) { \
|
||||
http_response(aio, error_code.error, result_error); \
|
||||
return; \
|
||||
} \
|
||||
} \
|
||||
}); \
|
||||
}
|
||||
|
||||
@@ -102,4 +102,4 @@ void neu_rest_api_handler(const struct neu_rest_handler **handlers,
|
||||
uint32_t * size);
|
||||
void neu_rest_api_cors_handler(const struct neu_rest_handler **handlers,
|
||||
uint32_t * size);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
+3
-3
@@ -25,9 +25,9 @@ extern "C" {
|
||||
|
||||
#include <jwt.h>
|
||||
|
||||
int neu_jwt_init(char *pub_key_path, char *priv_key_path);
|
||||
int neu_jwt_new(char **token);
|
||||
int neu_jwt_validate(char *b_token);
|
||||
int neu_jwt_init(char *pub_key_path, char *priv_key_path);
|
||||
int neu_jwt_new(char **token);
|
||||
int neu_jwt_validate(char *b_token);
|
||||
void neu_jwt_destroy();
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user