Skip to content

Commit b89a4e3

Browse files
committed
Fix broken imports
1 parent f342944 commit b89a4e3

File tree

3 files changed

+16
-14
lines changed

3 files changed

+16
-14
lines changed

crates/fuel-core/src/service/config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ pub struct Config {
8282
pub block_producer: fuel_core_producer::Config,
8383
pub gas_price_config: GasPriceConfig,
8484
#[cfg(feature = "rpc")]
85-
pub rpc_config: fuel_block_aggregator_api::integration::Config,
85+
pub rpc_config: fuel_core_block_aggregator_api::integration::Config,
8686
pub da_compression: DaCompressionMode,
8787
pub block_importer: fuel_core_importer::Config,
8888
#[cfg(feature = "relayer")]
@@ -170,7 +170,7 @@ impl Config {
170170
const MAX_TXS_TTL: Duration = Duration::from_secs(60 * 100000000);
171171

172172
#[cfg(feature = "rpc")]
173-
let rpc_config = fuel_block_aggregator_api::integration::Config {
173+
let rpc_config = fuel_core_block_aggregator_api::integration::Config {
174174
addr: free_local_addr(),
175175
};
176176

crates/fuel-core/src/service/sub_services.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use crate::service::adapters::consensus_module::poa::pre_confirmation_signature:
99
tx_receiver::PreconfirmationsReceiver,
1010
};
1111
#[cfg(feature = "rpc")]
12-
use fuel_block_aggregator_api::{
12+
use fuel_core_block_aggregator_api::{
1313
blocks::importer_and_db_source::serializer_adapter::SerializerAdapter,
1414
db::storage_db::StorageDB,
1515
};
@@ -466,7 +466,7 @@ pub fn init_sub_services(
466466
let serializer = SerializerAdapter;
467467
let onchain_db = database.on_chain().clone();
468468
let importer = importer_adapter.events_shared_result();
469-
fuel_block_aggregator_api::integration::new_service(
469+
fuel_core_block_aggregator_api::integration::new_service(
470470
&block_aggregator_config,
471471
db_adapter,
472472
serializer,

tests/tests/rpc.rs

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
#![allow(non_snake_case)]
22

3-
use fuel_block_aggregator_api::api::protobuf_adapter::{
4-
block_aggregator_client::BlockAggregatorClient,
5-
block_response::Payload,
6-
};
73
use fuel_core::{
84
database::Database,
95
service::{
106
Config,
117
FuelService,
128
},
139
};
10+
use fuel_core_block_aggregator_api::api::protobuf_adapter::{
11+
block_aggregator_client::BlockAggregatorClient,
12+
block_response::Payload,
13+
};
1414
use fuel_core_client::client::FuelClient;
1515
use fuel_core_types::{
1616
blockchain::block::Block,
@@ -47,10 +47,11 @@ async fn get_block_range__can_get_serialized_block_from_rpc() {
4747
let header = expected_block.header;
4848

4949
// when
50-
let request = fuel_block_aggregator_api::api::protobuf_adapter::BlockRangeRequest {
51-
start: 1,
52-
end: 1,
53-
};
50+
let request =
51+
fuel_core_block_aggregator_api::api::protobuf_adapter::BlockRangeRequest {
52+
start: 1,
53+
end: 1,
54+
};
5455
let actual_bytes = if let Some(Payload::Literal(block)) = rpc_client
5556
.get_block_range(request)
5657
.await
@@ -102,7 +103,8 @@ async fn get_block_height__can_get_value_from_rpc() {
102103
.expect("could not connect to server");
103104

104105
// when
105-
let request = fuel_block_aggregator_api::api::protobuf_adapter::BlockHeightRequest {};
106+
let request =
107+
fuel_core_block_aggregator_api::api::protobuf_adapter::BlockHeightRequest {};
106108
let expected_height = 1;
107109
let actual_height = rpc_client
108110
.get_block_height(request)
@@ -134,7 +136,7 @@ async fn new_block_subscription__can_get_expect_block() {
134136
.expect("could not connect to server");
135137

136138
let request =
137-
fuel_block_aggregator_api::api::protobuf_adapter::NewBlockSubscriptionRequest {};
139+
fuel_core_block_aggregator_api::api::protobuf_adapter::NewBlockSubscriptionRequest {};
138140
let mut stream = rpc_client
139141
.new_block_subscription(request)
140142
.await

0 commit comments

Comments
 (0)