Skip to content

Commit

Permalink
Use rx-observable-fwd to reduce build time
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei Lebedev <lebdron@gmail.com>
  • Loading branch information
lebdron committed Sep 27, 2019
1 parent 37890db commit 61a4820
Show file tree
Hide file tree
Showing 39 changed files with 56 additions and 25 deletions.
1 change: 1 addition & 0 deletions irohad/ametsuchi/impl/storage_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

#include <soci/soci.h>
#include <boost/optional.hpp>
#include <rxcpp/rx-lite.hpp>
#include "ametsuchi/block_storage_factory.hpp"
#include "ametsuchi/impl/pool_wrapper.hpp"
#include "ametsuchi/impl/postgres_options.hpp"
Expand Down
2 changes: 1 addition & 1 deletion irohad/ametsuchi/mutable_storage.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#include <functional>

#include <rxcpp/rx-lite.hpp>
#include <rxcpp/rx-observable-fwd.hpp>
#include "ametsuchi/ledger_state.hpp"
#include "interfaces/common_objects/types.hpp"

Expand Down
2 changes: 1 addition & 1 deletion irohad/ametsuchi/storage.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#include <vector>

#include <rxcpp/rx-lite.hpp>
#include <rxcpp/rx-observable-fwd.hpp>
#include "ametsuchi/block_query_factory.hpp"
#include "ametsuchi/mutable_factory.hpp"
#include "ametsuchi/peer_query_factory.hpp"
Expand Down
1 change: 1 addition & 0 deletions irohad/consensus/yac/impl/yac_gate_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

#include <memory>

#include <rxcpp/rx-lite.hpp>
#include "consensus/consensus_block_cache.hpp"
#include "consensus/yac/yac_hash_provider.hpp"
#include "logger/logger_fwd.hpp"
Expand Down
2 changes: 1 addition & 1 deletion irohad/consensus/yac/yac_gate.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#ifndef IROHA_YAC_GATE_HPP
#define IROHA_YAC_GATE_HPP

#include <rxcpp/rx-lite.hpp>
#include <rxcpp/rx-observable-fwd.hpp>
#include "consensus/yac/cluster_order.hpp"
#include "consensus/yac/storage/storage_result.hpp"
#include "network/consensus_gate.hpp"
Expand Down
1 change: 1 addition & 0 deletions irohad/main/impl/on_demand_ordering_init.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#include <random>

#include <rxcpp/rx-lite.hpp>
#include "ametsuchi/storage.hpp"
#include "ametsuchi/tx_presence_cache.hpp"
#include "interfaces/iroha_internal/unsafe_proposal_factory.hpp"
Expand Down
2 changes: 1 addition & 1 deletion irohad/model/commit.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#ifndef IROHA_COMMIT_HPP
#define IROHA_COMMIT_HPP

#include <rxcpp/rx-lite.hpp>
#include <rxcpp/rx-observable-fwd.hpp>

namespace iroha {
using OldCommit = rxcpp::observable<model::Block>;
Expand Down
2 changes: 2 additions & 0 deletions irohad/multi_sig_transactions/impl/mst_processor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

#include "multi_sig_transactions/mst_processor.hpp"

#include <rxcpp/rx-lite.hpp>

namespace iroha {

MstProcessor::MstProcessor(logger::LoggerPtr log) : log_(std::move(log)) {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

#include "multi_sig_transactions/mst_propagation_strategy_stub.hpp"

#include <rxcpp/rx-lite.hpp>

namespace iroha {
rxcpp::observable<PropagationStrategy::PropagationData>
PropagationStrategyStub::emitter() {
Expand Down
2 changes: 1 addition & 1 deletion irohad/multi_sig_transactions/mst_processor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#include <memory>
#include <mutex>
#include <rxcpp/rx-lite.hpp>
#include <rxcpp/rx-observable-fwd.hpp>
#include "logger/logger_fwd.hpp"
#include "multi_sig_transactions/mst_types.hpp"
#include "multi_sig_transactions/state/mst_state.hpp"
Expand Down
7 changes: 5 additions & 2 deletions irohad/multi_sig_transactions/mst_processor_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,17 @@
#ifndef IROHA_MST_PROCESSOR_IMPL_HPP
#define IROHA_MST_PROCESSOR_IMPL_HPP

#include "multi_sig_transactions/mst_processor.hpp"
#include "network/mst_transport.hpp"

#include <memory>

#include <rxcpp/rx-lite.hpp>
#include "cryptography/public_key.hpp"
#include "logger/logger_fwd.hpp"
#include "multi_sig_transactions/mst_processor.hpp"
#include "multi_sig_transactions/mst_propagation_strategy.hpp"
#include "multi_sig_transactions/mst_time_provider.hpp"
#include "multi_sig_transactions/storage/mst_storage.hpp"
#include "network/mst_transport.hpp"

namespace iroha {

Expand Down
2 changes: 1 addition & 1 deletion irohad/multi_sig_transactions/mst_propagation_strategy.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#ifndef IROHA_MST_PROPAGATION_STRATEGY_HPP
#define IROHA_MST_PROPAGATION_STRATEGY_HPP

#include <rxcpp/rx-lite.hpp>
#include <rxcpp/rx-observable-fwd.hpp>
#include <vector>
#include "interfaces/common_objects/peer.hpp"

Expand Down
2 changes: 1 addition & 1 deletion irohad/network/block_loader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#define IROHA_BLOCK_LOADER_HPP

#include <memory>
#include <rxcpp/rx-lite.hpp>
#include <rxcpp/rx-observable-fwd.hpp>

#include "cryptography/public_key.hpp"
#include "interfaces/common_objects/types.hpp"
Expand Down
2 changes: 1 addition & 1 deletion irohad/network/consensus_gate.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#ifndef IROHA_CONSENSUS_GATE_HPP
#define IROHA_CONSENSUS_GATE_HPP

#include <rxcpp/rx-lite.hpp>
#include <rxcpp/rx-observable-fwd.hpp>
#include "consensus/gate_object.hpp"

namespace shared_model {
Expand Down
3 changes: 2 additions & 1 deletion irohad/network/impl/block_loader_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@

#include "network/impl/block_loader_impl.hpp"

#include <grpc++/create_channel.h>
#include <chrono>

#include <grpc++/create_channel.h>
#include <rxcpp/rx-lite.hpp>
#include "backend/protobuf/block.hpp"
#include "builders/protobuf/transport_builder.hpp"
#include "common/bind.hpp"
Expand Down
1 change: 1 addition & 0 deletions irohad/network/impl/peer_communication_service_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

#include "network/impl/peer_communication_service_impl.hpp"

#include <rxcpp/rx-lite.hpp>
#include "interfaces/iroha_internal/transaction_batch.hpp"
#include "logger/logger.hpp"
#include "network/ordering_gate.hpp"
Expand Down
2 changes: 1 addition & 1 deletion irohad/network/ordering_gate.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#include <memory>

#include <rxcpp/rx-lite.hpp>
#include <rxcpp/rx-observable-fwd.hpp>
#include "network/ordering_gate_common.hpp"
#include "network/peer_communication_service.hpp"

Expand Down
2 changes: 1 addition & 1 deletion irohad/network/peer_communication_service.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#ifndef IROHA_PEER_COMMUNICATION_SERVICE_HPP
#define IROHA_PEER_COMMUNICATION_SERVICE_HPP

#include <rxcpp/rx-lite.hpp>
#include <rxcpp/rx-observable-fwd.hpp>
#include "network/ordering_gate_common.hpp"
#include "simulator/verified_proposal_creator_common.hpp"
#include "synchronizer/synchronizer_common.hpp"
Expand Down
1 change: 0 additions & 1 deletion irohad/pending_txs_storage/pending_txs_storage.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#define IROHA_PENDING_TXS_STORAGE_HPP

#include <boost/optional.hpp>
#include <rxcpp/rx-lite.hpp>
#include "common/result.hpp"
#include "interfaces/common_objects/transaction_sequence_common.hpp"
#include "interfaces/common_objects/types.hpp"
Expand Down
2 changes: 1 addition & 1 deletion irohad/simulator/block_creator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#ifndef IROHA_BLOCK_CREATOR_HPP
#define IROHA_BLOCK_CREATOR_HPP

#include <rxcpp/rx-lite.hpp>
#include <rxcpp/rx-observable-fwd.hpp>
#include "simulator/block_creator_common.hpp"

namespace iroha {
Expand Down
1 change: 1 addition & 0 deletions irohad/simulator/impl/simulator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include "simulator/verified_proposal_creator.hpp"

#include <boost/optional.hpp>
#include <rxcpp/rx-lite.hpp>
#include "ametsuchi/temporary_factory.hpp"
#include "cryptography/crypto_provider/abstract_crypto_model_signer.hpp"
#include "interfaces/iroha_internal/unsafe_block_factory.hpp"
Expand Down
2 changes: 1 addition & 1 deletion irohad/simulator/verified_proposal_creator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#ifndef IROHA_VERIFIED_PROPOSAL_CREATOR_HPP
#define IROHA_VERIFIED_PROPOSAL_CREATOR_HPP

#include <rxcpp/rx-lite.hpp>
#include <rxcpp/rx-observable-fwd.hpp>
#include "simulator/verified_proposal_creator_common.hpp"

namespace shared_model {
Expand Down
1 change: 1 addition & 0 deletions irohad/synchronizer/impl/synchronizer_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#include "synchronizer/synchronizer.hpp"

#include <rxcpp/rx-lite.hpp>
#include "ametsuchi/commit_result.hpp"
#include "ametsuchi/mutable_factory.hpp"
#include "ametsuchi/peer_query_factory.hpp"
Expand Down
2 changes: 1 addition & 1 deletion irohad/synchronizer/synchronizer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#ifndef IROHA_SYNCHRONIZER_HPP
#define IROHA_SYNCHRONIZER_HPP

#include <rxcpp/rx-lite.hpp>
#include <rxcpp/rx-observable-fwd.hpp>

#include "consensus/gate_object.hpp"
#include "synchronizer/synchronizer_common.hpp"
Expand Down
2 changes: 1 addition & 1 deletion irohad/torii/command_service.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#ifndef TORII_COMMAND_SERVICE_HPP
#define TORII_COMMAND_SERVICE_HPP

#include <rxcpp/rx-lite.hpp>
#include <rxcpp/rx-observable-fwd.hpp>
#include "interfaces/common_objects/types.hpp"

namespace shared_model {
Expand Down
1 change: 1 addition & 0 deletions irohad/torii/impl/command_service_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#include "torii/command_service.hpp"

#include <rxcpp/rx-lite.hpp>
#include "ametsuchi/storage.hpp"
#include "ametsuchi/tx_presence_cache.hpp"
#include "cache/cache.hpp"
Expand Down
1 change: 1 addition & 0 deletions irohad/torii/impl/command_service_transport_grpc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#include "torii/command_service.hpp"

#include <rxcpp/rx-lite.hpp>
#include "endpoint.grpc.pb.h"
#include "endpoint.pb.h"
#include "interfaces/common_objects/transaction_sequence_common.hpp"
Expand Down
2 changes: 1 addition & 1 deletion irohad/torii/processor/query_processor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#ifndef IROHA_QUERY_PROCESSOR_HPP
#define IROHA_QUERY_PROCESSOR_HPP

#include <rxcpp/rx-lite.hpp>
#include <rxcpp/rx-observable-fwd.hpp>

#include <memory>

Expand Down
4 changes: 3 additions & 1 deletion irohad/torii/processor/query_processor_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@
#ifndef IROHA_QUERY_PROCESSOR_IMPL_HPP
#define IROHA_QUERY_PROCESSOR_IMPL_HPP

#include "torii/processor/query_processor.hpp"

#include <rxcpp/rx-lite.hpp>
#include "ametsuchi/storage.hpp"
#include "interfaces/iroha_internal/query_response_factory.hpp"
#include "logger/logger_fwd.hpp"
#include "torii/processor/query_processor.hpp"

namespace iroha {
namespace torii {
Expand Down
2 changes: 1 addition & 1 deletion irohad/torii/status_bus.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#ifndef TORII_STATUS_BUS
#define TORII_STATUS_BUS

#include <rxcpp/rx-lite.hpp>
#include <rxcpp/rx-observable-fwd.hpp>
#include "interfaces/transaction_responses/tx_response.hpp"

namespace iroha {
Expand Down
4 changes: 3 additions & 1 deletion irohad/validation/chain_validator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
#ifndef IROHA_CHAIN_VALIDATOR_HPP
#define IROHA_CHAIN_VALIDATOR_HPP

#include <rxcpp/rx-lite.hpp>
#include <memory>

#include <rxcpp/rx-observable-fwd.hpp>

namespace shared_model {
namespace interface {
Expand Down
1 change: 1 addition & 0 deletions irohad/validation/impl/chain_validator_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

#include "validation/impl/chain_validator_impl.hpp"

#include <rxcpp/rx-lite.hpp>
#include "ametsuchi/ledger_state.hpp"
#include "ametsuchi/mutable_storage.hpp"
#include "consensus/yac/supermajority_checker.hpp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <memory>
#include <vector>

#include <rxcpp/rx-lite.hpp>
#include "framework/integration_framework/fake_peer/fake_peer.hpp"
#include "framework/integration_framework/fake_peer/types.hpp"
#include "logger/logger_fwd.hpp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include <string>

#include <boost/core/noncopyable.hpp>
#include <rxcpp/rx-lite.hpp>
#include <rxcpp/rx-observable-fwd.hpp>
#include "framework/integration_framework/fake_peer/network/mst_message.hpp"
#include "framework/integration_framework/fake_peer/proposal_storage.hpp"
#include "framework/integration_framework/fake_peer/types.hpp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
#ifndef IROHA_INTEGRATION_FRAMEWORK_HPP
#define IROHA_INTEGRATION_FRAMEWORK_HPP

#include <rxcpp/rx-lite.hpp>
#include <chrono>
#include <condition_variable>
#include <mutex>

#include <rxcpp/rx-observable-fwd.hpp>
#include "consensus/gate_object.hpp"
#include "cryptography/keypair.hpp"
#include "logger/logger_fwd.hpp"
Expand Down
5 changes: 4 additions & 1 deletion test/integration/acceptance/query_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include "integration/acceptance/acceptance_fixture.hpp"

#include <thread>

#include <boost/variant.hpp>
#include "backend/protobuf/query_responses/proto_query_response.hpp"
#include "framework/integration_framework/integration_test_framework.hpp"
#include "integration/acceptance/acceptance_fixture.hpp"
#include "interfaces/query_responses/transactions_response.hpp"

using namespace integration_framework;
Expand Down
1 change: 1 addition & 0 deletions test/module/irohad/ametsuchi/mock_mutable_storage.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include "ametsuchi/mutable_storage.hpp"

#include <gmock/gmock.h>
#include <rxcpp/rx-lite.hpp>

namespace iroha {
namespace ametsuchi {
Expand Down
1 change: 1 addition & 0 deletions test/module/irohad/ametsuchi/mock_storage.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include "ametsuchi/storage.hpp"

#include <gmock/gmock.h>
#include <rxcpp/rx-lite.hpp>
#include "ametsuchi/block_storage_factory.hpp"
#include "ametsuchi/mutable_storage.hpp"
#include "ametsuchi/temporary_wsv.hpp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include "torii/processor/query_processor.hpp"

#include <gmock/gmock.h>
#include <rxcpp/rx-lite.hpp>

namespace iroha {
namespace torii {
Expand Down

0 comments on commit 61a4820

Please sign in to comment.