缩减代码
This commit is contained in:
@@ -25,14 +25,6 @@ asio::awaitable<void> Data_Feed_UDP_Server::_open() {
|
||||
server_logger->c_debug({}, {}, to_string() + "开启!");
|
||||
co_return;
|
||||
}
|
||||
JSON Data_feed_Config::get_feed(std::string_view key) {
|
||||
auto ret = map.get(std::string(key));
|
||||
if (ret.has_value()) {
|
||||
auto r = ret.value().get();
|
||||
return r->to_json();
|
||||
}
|
||||
return {nullptr};
|
||||
}
|
||||
void Data_feed_Config::server(Global* g) {
|
||||
auto& svr = g->svr;
|
||||
auto& api = g->api;
|
||||
|
||||
Reference in New Issue
Block a user