Fix error of clang-format and remove sudo in dev.yml

This commit is contained in:
Parker Liu
2021-12-08 11:36:59 +08:00
parent 80337b6b30
commit 2e889bda3b
4 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -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
+2 -2
View File
@@ -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);
+2 -2
View File
@@ -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
View File
@@ -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
}