Skip to content

Commit

Permalink
make fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
web-flow authored Oct 22, 2024
1 parent 0e0d18a commit a5bc2f6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions silkworm/db/data_store.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#pragma once

#include <functional>

#include <silkworm/db/datastore/mdbx/mdbx.hpp>
#include <silkworm/db/datastore/snapshots/snapshot_repository.hpp>

Expand Down
8 changes: 4 additions & 4 deletions silkworm/rpc/daemon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -316,10 +316,10 @@ std::unique_ptr<db::kv::api::Client> Daemon::make_kv_client(rpc::ClientContext&
db::kv::api::StateChangeRunner runner{io_context.get_executor()};
db::kv::api::ServiceRouter router{runner.state_changes_calls_channel()};
db::DataStoreRefProvider data_store_provider = [this] {
return db::DataStoreRef{*this->chaindata_env_, };
}
return std::make_unique<db::kv::api::DirectClient>(
std::make_shared<db::kv::api::DirectService>(router, std::move(data_store_provider), state_cache));
return db::DataStoreRef{
*this->chaindata_env_,
};
} return std::make_unique<db::kv::api::DirectClient>(std::make_shared<db::kv::api::DirectService>(router, std::move(data_store_provider), state_cache));
}

void Daemon::add_execution_services(const std::vector<std::shared_ptr<engine::ExecutionEngine>>& engines) {
Expand Down
5 changes: 3 additions & 2 deletions silkworm/rpc/daemon.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,9 @@ class Daemon {

std::data

//! The JSON RPC API services.
std::vector<std::unique_ptr<http::Server>> rpc_services_;
//! The JSON RPC API services.
std::vector<std::unique_ptr<http::Server>>
rpc_services_;

//! The gRPC KV interface client.
std::unique_ptr<db::kv::api::Client> kv_client_;
Expand Down

0 comments on commit a5bc2f6

Please sign in to comment.