diff options
| author | yangwei <[email protected]> | 2024-11-27 14:30:10 +0800 |
|---|---|---|
| committer | yangwei <[email protected]> | 2024-11-27 14:30:10 +0800 |
| commit | 6b6b5e1eed18a6ba83ddd2b76221346c96ce29d4 (patch) | |
| tree | cc23a8d46e2f31d55abd2efe68a7970e5b2944a7 /infra/stellar_core.c | |
| parent | 975b584b6595e119b6ea8da392719f14799f5929 (diff) | |
🦄 refactor(rename module_register_packet_node): to register_packet_node_for_module
Diffstat (limited to 'infra/stellar_core.c')
| -rw-r--r-- | infra/stellar_core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/infra/stellar_core.c b/infra/stellar_core.c index f575b25..efdb541 100644 --- a/infra/stellar_core.c +++ b/infra/stellar_core.c @@ -158,7 +158,7 @@ struct packet_node_spec packet_nodes[] = { }; -int module_register_packet_node(struct module_manager *mod_mgr, struct packet_node_spec *specs, size_t n_specs) +static int register_packet_node_for_module(struct module_manager *mod_mgr, struct packet_node_spec *specs, size_t n_specs) { struct module *pkt_mgr_mod = module_manager_get_module(mod_mgr, PACKET_MANAGER_MODULE_NAME); struct packet_manager *pkt_mgr = module_to_packet_manager(pkt_mgr_mod); @@ -232,7 +232,7 @@ struct stellar *stellar_new(const char *toml_file) goto error_out; } - if(module_register_packet_node(st->mod_mgr, packet_nodes, count_of(packet_nodes)) != 0) + if(register_packet_node_for_module(st->mod_mgr, packet_nodes, count_of(packet_nodes)) != 0) { CORE_LOG_ERROR("unable to register packet node"); goto error_out; |
