🦄 refactor(plugin_manager): refactor intrinsic topic name

This commit is contained in:
yangwei
2024-08-28 19:58:28 +08:00
parent 283d591e6b
commit b2647a5a75
10 changed files with 156 additions and 164 deletions

View File

@@ -557,8 +557,8 @@ void *packet_inject_init(struct stellar *st)
print_config(ctx->logger, &ctx->config);
ctx->sess_plug_id = stellar_session_plugin_register(st, on_sess_new, on_sess_free, ctx);
ctx->tcp_topic_id = stellar_mq_get_topic_id(st, TOPIC_TCP);
ctx->udp_topic_id = stellar_mq_get_topic_id(st, TOPIC_UDP);
ctx->tcp_topic_id = stellar_mq_get_topic_id(st, TOPIC_TCP_INPUT);
ctx->udp_topic_id = stellar_mq_get_topic_id(st, TOPIC_UDP_OUTPUT);
stellar_session_mq_subscribe(st, ctx->tcp_topic_id, on_sess_msg, ctx->sess_plug_id);
stellar_session_mq_subscribe(st, ctx->udp_topic_id, on_sess_msg, ctx->sess_plug_id);