🦄 refactor(module manager): rename polling API
This commit is contained in:
@@ -222,8 +222,8 @@ struct test_module_polling_env
|
||||
env->polling_count++;
|
||||
if(env->polling_count%2==0)
|
||||
{
|
||||
module_manager_polling_active(mod_mgr);
|
||||
env->polling_active_count++;
|
||||
//module_manager_polling_active(mod_mgr);
|
||||
//env->polling_active_count++;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -242,7 +242,7 @@ TEST(module_manager, basic_polling_module) {
|
||||
struct test_module_polling_env env={};
|
||||
env.N_round=10;
|
||||
|
||||
module_manager_polling_subscribe(mod_mgr, test_module_on_polling, &env);
|
||||
module_manager_register_polling_node(mod_mgr, test_module_on_polling, &env);
|
||||
|
||||
struct mq_runtime *mq_rt = mq_runtime_new(mq_schema);
|
||||
module_manager_register_thread(mod_mgr, 1, mq_rt);
|
||||
|
||||
Reference in New Issue
Block a user