diff options
| author | luwenpeng <[email protected]> | 2024-09-19 16:10:59 +0800 |
|---|---|---|
| committer | luwenpeng <[email protected]> | 2024-09-20 16:59:19 +0800 |
| commit | bf8ba9716552b81e4d4ae6b0fe8950ec6f113665 (patch) | |
| tree | 9668a6d1ae2af1c3bce75e96665a60d461edcca4 /infra/stellar_core.c | |
| parent | d9c3ac24489d68aae8b43148aec0b1e90fa0ea00 (diff) | |
rename packet_private.h to packet_internal.h
Diffstat (limited to 'infra/stellar_core.c')
| -rw-r--r-- | infra/stellar_core.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/infra/stellar_core.c b/infra/stellar_core.c index 136c200..bec285c 100644 --- a/infra/stellar_core.c +++ b/infra/stellar_core.c @@ -15,12 +15,10 @@ #include "packet_io.h" #include "log_private.h" #include "stellar_stat.h" -#include "packet_private.h" +#include "packet_internal.h" #include "session_private.h" #include "session_manager.h" - - #define CORE_LOG_FATAL(format, ...) STELLAR_LOG_FATAL(__thread_local_logger, "core", format, ##__VA_ARGS__) #define CORE_LOG_ERROR(format, ...) STELLAR_LOG_ERROR(__thread_local_logger, "core", format, ##__VA_ARGS__) #define CORE_LOG_DEBUG(format, ...) STELLAR_LOG_DEBUG(__thread_local_logger, "core", format, ##__VA_ARGS__) @@ -113,7 +111,7 @@ static inline void clean_session(struct session_manager *sess_mgr, uint64_t now_ for (uint64_t j = 0; j < nr_sess_cleaned; j++) { sess = cleaned_sess[j]; - //session_exdata_runtime_free(session_get_user_data(sess)); + // session_exdata_runtime_free(session_get_user_data(sess)); session_manager_free_session(sess_mgr, sess); } } @@ -212,8 +210,8 @@ static void *worker_thread(void *arg) { goto fast_path; } - //struct exdata_runtime *per_sess_exdata=session_exdata_runtime_new(st); - //session_set_user_data(sess, per_sess_exdata); + // struct exdata_runtime *per_sess_exdata=session_exdata_runtime_new(st); + // session_set_user_data(sess, per_sess_exdata); } else { @@ -452,7 +450,7 @@ struct stellar *stellar_new(const char *stellar_cfg_file, const char *plugin_cfg CORE_LOG_ERROR("unable to create stellar stat"); goto error_out; } - runtime->mq_schema=mq_schema_new(); + runtime->mq_schema = mq_schema_new(); runtime->mod_mgr = stellar_module_manager_new(plugin_cfg_file, config->pkt_io_cfg->nr_worker_thread, runtime->mq_schema); if (runtime->mod_mgr == NULL) { @@ -570,7 +568,6 @@ void stellar_reload_log_level(struct stellar *st) * Stellar Utility Function ******************************************************************************/ - // only send user build packet, can't send packet which come from network void stellar_send_build_packet(struct stellar *st, struct packet *pkt) { |
