Skip to content

Commit

Permalink
fix more warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
canepat committed Jan 24, 2024
1 parent abae26f commit d1c3741
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions silkworm/node/stagedsync/execution_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

#include <silkworm/infra/common/ensure.hpp>
#include <silkworm/node/db/access_layer.hpp>
#include <silkworm/node/db/db_utils.hpp>

namespace silkworm::stagedsync {

Expand All @@ -29,7 +28,7 @@ using namespace boost::asio;
ExecutionEngine::ExecutionEngine(asio::io_context& ctx, NodeSettings& ns, db::RWAccess dba)
: io_context_{ctx},
node_settings_{ns},
main_chain_(ctx, ns, dba),
main_chain_{ctx, ns, std::move(dba)},
block_cache_{kDefaultCacheSize} {}

void ExecutionEngine::open() { // needed to circumvent mdbx threading model limitations
Expand Down
4 changes: 2 additions & 2 deletions silkworm/node/stagedsync/forks/main_chain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ namespace silkworm::stagedsync {
//! The number of inserted blocks between two successive commits on db
constexpr uint64_t kInsertedBlockBatch{1'000};

MainChain::MainChain(boost::asio::io_context& ctx, NodeSettings& ns, const db::RWAccess dba)
MainChain::MainChain(boost::asio::io_context& ctx, NodeSettings& ns, db::RWAccess dba)
: io_context_{ctx},
node_settings_{ns},
db_access_{dba},
db_access_{std::move(dba)},
tx_{db_access_.start_rw_tx()},
data_model_{tx_},
pipeline_{&ns},
Expand Down
3 changes: 1 addition & 2 deletions silkworm/node/stagedsync/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ namespace silkworm::execution {
using namespace std::chrono;
namespace asio = boost::asio;

Server::Server(NodeSettings& ns, db::RWAccess dba) : exec_engine_{io_context_, ns, dba} {
}
Server::Server(NodeSettings& ns, db::RWAccess dba) : exec_engine_{io_context_, ns, std::move(dba)} {}

bool Server::stop() {
io_context_.stop();
Expand Down

0 comments on commit d1c3741

Please sign in to comment.