Skip to content

Commit ff3d817

Browse files
committed
remove diff sources
1 parent ac8c16e commit ff3d817

File tree

4 files changed

+1
-255
lines changed

4 files changed

+1
-255
lines changed

demo/node/src/data_sources.rs

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,13 @@ use sp_governed_map::GovernedMapDataSource;
99
use sp_partner_chains_bridge::TokenBridgeDataSource;
1010
use std::{error::Error, sync::Arc};
1111

12-
use crate::diff_sources;
13-
1412
pub const DATA_SOURCE_VAR: &str = "CARDANO_DATA_SOURCE";
1513

1614
#[derive(Clone, Debug, PartialEq)]
1715
pub enum DataSourceType {
1816
DbSync,
1917
Mock,
2018
Dolos,
21-
Diff,
2219
}
2320

2421
impl DataSourceType {
@@ -37,7 +34,7 @@ impl std::str::FromStr for DataSourceType {
3734
match s.to_lowercase().as_str() {
3835
"db-sync" => Ok(DataSourceType::DbSync),
3936
"mock" => Ok(DataSourceType::Mock),
40-
"dolos" => Ok(DataSourceType::Diff), // TODO restore this to dolos
37+
"dolos" => Ok(DataSourceType::Dolos),
4138
_ => {
4239
Err(format!("Invalid data source type: {}. Valid options: db-sync, mock, dolos", s))
4340
},
@@ -51,7 +48,6 @@ impl std::fmt::Display for DataSourceType {
5148
DataSourceType::DbSync => write!(f, "db-sync"),
5249
DataSourceType::Mock => write!(f, "mock"),
5350
DataSourceType::Dolos => write!(f, "dolos"),
54-
DataSourceType::Diff => write!(f, "diff"),
5551
}
5652
}
5753
}
@@ -88,14 +84,6 @@ pub(crate) async fn create_cached_data_sources(
8884
DataSourceType::Dolos => create_dolos_data_sources(metrics_opt).await.map_err(|err| {
8985
ServiceError::Application(format!("Failed to create dolos data sources: {err}").into())
9086
}),
91-
92-
DataSourceType::Diff => {
93-
diff_sources::create_diff_data_sources(metrics_opt).await.map_err(|err| {
94-
ServiceError::Application(
95-
format!("Failed to create dolos data sources: {err}").into(),
96-
)
97-
})
98-
},
9987
}
10088
}
10189

demo/node/src/diff_sources.rs

Lines changed: 0 additions & 240 deletions
This file was deleted.

demo/node/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
pub mod chain_spec;
55
mod data_sources;
6-
mod diff_sources;
76
mod inherent_data;
87
pub mod rpc;
98
pub mod service;

demo/node/src/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ mod chain_spec;
66
mod cli;
77
mod command;
88
mod data_sources;
9-
mod diff_sources;
109
mod inherent_data;
1110
mod rpc;
1211
mod service;

0 commit comments

Comments
 (0)