Fixing shared->unique assignment and no return in control flow. (#4529)

This commit is contained in:
clemahieu 2024-03-31 15:37:47 +02:00 committed by GitHub
commit f6ad9d7800
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -175,7 +175,7 @@ int run_wallet (QApplication & application, int argc, char * const * argv, std::
nano::ipc::ipc_server ipc (*node, config.rpc);
std::unique_ptr<boost::process::child> rpc_process;
std::unique_ptr<nano::rpc> rpc;
std::shared_ptr<nano::rpc> rpc;
std::unique_ptr<nano::rpc_handler_interface> rpc_handler;
if (config.rpc_enable)
{

View file

@ -97,4 +97,5 @@ std::shared_ptr<nano::rpc> nano::get_rpc (std::shared_ptr<boost::asio::io_contex
{
return std::make_shared<nano::rpc> (io_ctx_a, config_a, rpc_handler_interface_a);
}
return nullptr;
}