Skip to content

Commit

Permalink
fix: yaml misc (AimRT#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
wtudio authored Nov 21, 2024
1 parent 1f173fd commit 1b88aa7
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions document/sphinx-cn/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,5 @@
"code_site_url": "https://github.com/AimRT/AimRT",
"code_site_root_path_url": "https://github.com/AimRT/AimRT/blob/main",
}

html_show_sourcelink = False
2 changes: 2 additions & 0 deletions src/plugins/echo_plugin/echo_plugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,10 @@ bool EchoPlugin::Initialize(runtime::core::AimRTCore* core_ptr) noexcept {
[this] {
SetLogger(aimrt::logger::GetSimpleLoggerRef());
});

plugin_options_node = options_;
core_ptr_->GetPluginManager().UpdatePluginOptionsNode(Name(), plugin_options_node);

return true;
} catch (const std::exception& e) {
AIMRT_ERROR("Initialize failed, {}", e.what());
Expand Down
2 changes: 2 additions & 0 deletions src/runtime/core/channel/channel_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ struct convert<aimrt::runtime::core::channel::ChannelManager::Options> {

if (backend_options_node["options"])
backend_options.options = backend_options_node["options"];
else
backend_options.options = YAML::Node(YAML::NodeType::Null);

rhs.backends_options.emplace_back(std::move(backend_options));
}
Expand Down
2 changes: 2 additions & 0 deletions src/runtime/core/executor/executor_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ struct convert<aimrt::runtime::core::executor::ExecutorManager::Options> {

if (executor_node["options"])
executor_options.options = executor_node["options"];
else
executor_options.options = YAML::Node(YAML::NodeType::Null);

rhs.executors_options.emplace_back(std::move(executor_options));
}
Expand Down
2 changes: 2 additions & 0 deletions src/runtime/core/logger/logger_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ struct convert<aimrt::runtime::core::logger::LoggerManager::Options> {

if (backend_options_node["options"])
backend_options.options = backend_options_node["options"];
else
backend_options.options = YAML::Node(YAML::NodeType::Null);

rhs.backends_options.emplace_back(std::move(backend_options));
}
Expand Down
2 changes: 2 additions & 0 deletions src/runtime/core/plugin/plugin_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ struct convert<aimrt::runtime::core::plugin::PluginManager::Options> {

if (plugin_options_node["options"])
plugin_options.options = plugin_options_node["options"];
else
plugin_options.options = YAML::Node(YAML::NodeType::Null);

rhs.plugins_options.emplace_back(std::move(plugin_options));
}
Expand Down
2 changes: 2 additions & 0 deletions src/runtime/core/rpc/rpc_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ struct convert<aimrt::runtime::core::rpc::RpcManager::Options> {

if (backend_options_node["options"])
backend_options.options = backend_options_node["options"];
else
backend_options.options = YAML::Node(YAML::NodeType::Null);

rhs.backends_options.emplace_back(std::move(backend_options));
}
Expand Down

0 comments on commit 1b88aa7

Please sign in to comment.