Skip to content

Commit

Permalink
get rid of some NOLINTs
Browse files Browse the repository at this point in the history
  • Loading branch information
yperbasis committed Sep 17, 2024
1 parent 06c6cc4 commit db06a0f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions silkworm/infra/grpc/client/dispatcher.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ namespace silkworm::detail {

template <typename Executor>
struct ExecutorDispatcher {
Executor executor_; // NOLINT(readability-identifier-naming)
Executor executor;

template <typename CompletionToken, typename... Args>
void dispatch(CompletionToken&& token, Args&&... args) {
boost::asio::dispatch(
boost::asio::bind_executor(executor_,
boost::asio::bind_executor(executor,
boost::asio::append(std::forward<CompletionToken>(token),
std::forward<Args>(args)...)));
}
Expand Down
5 changes: 3 additions & 2 deletions silkworm/infra/test_util/context_test_base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,14 @@ class ContextTestBase {

~ContextTestBase();

// NOLINTBEGIN(readability-identifier-naming)
agrpc::GrpcContext& grpc_context() { return grpc_context_; }

protected:
silkworm::test_util::SetLogVerbosityGuard log_guard_;
rpc::ClientContext context_;
boost::asio::io_context& io_context_;
agrpc::GrpcContext& grpc_context_;
std::thread context_thread_;
// NOLINTEND(readability-identifier-naming)
};

} // namespace silkworm::test_util
2 changes: 1 addition & 1 deletion silkworm/rpc/core/estimate_gas_oracle_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ TEST_CASE("estimate gas") {
RemoteDatabaseTest remote_db_test;
test::BackEndMock backend;
auto tx = std::make_unique<db::kv::grpc::client::RemoteTransaction>(*remote_db_test.stub,
remote_db_test.grpc_context_,
remote_db_test.grpc_context(),
&remote_db_test.state_cache,
ethdb::kv::block_provider(&backend),
ethdb::kv::block_number_from_txn_hash_provider(&backend));
Expand Down

0 comments on commit db06a0f

Please sign in to comment.