微调
This commit is contained in:
@@ -1,5 +1,14 @@
|
||||
#include "Local_Server/Data_Feed/Data_Feed.h"
|
||||
#include "../server/Global.h"
|
||||
bool Data_Feed::registered() {
|
||||
auto all_feed = Global::instance()->mode_acs.data_feed_config.map.list();
|
||||
for (auto& item : all_feed) {
|
||||
if (item.get() == this) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
void Data_Feed_UDP_Server::handle_in_loop() {
|
||||
ucoro::sync_await(handle_in_loop_coro());
|
||||
}
|
||||
|
||||
@@ -100,6 +100,8 @@ public:
|
||||
std::string to_string() {
|
||||
return "Data_Feed【" + VAR_STR_3(key, enable, type) + "】";
|
||||
}
|
||||
|
||||
bool registered();
|
||||
protected:
|
||||
Data_Feed() = default;
|
||||
bool _open_ = false;
|
||||
|
||||
Reference in New Issue
Block a user