Skip to content

Commit f5130a8

Browse files
authored
refactor: make config struct fields public (#899)
1 parent dceec0c commit f5130a8

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

src/filters/wasm_plugin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ impl gasket::framework::Worker<Stage> for Worker {
9191

9292
#[derive(Default, Deserialize)]
9393
pub struct Config {
94-
path: String,
94+
pub path: String,
9595
}
9696

9797
impl Config {

src/sources/mithril.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -328,10 +328,10 @@ impl gasket::framework::Worker<Stage> for Worker {
328328

329329
#[derive(Deserialize, Clone)]
330330
pub struct Config {
331-
aggregator: String,
332-
genesis_key: String,
333-
snapshot_download_dir: String,
334-
skip_validation: bool,
331+
pub aggregator: String,
332+
pub genesis_key: String,
333+
pub snapshot_download_dir: String,
334+
pub skip_validation: bool,
335335
}
336336

337337
impl Config {

src/sources/s3.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ impl gasket::framework::Worker<Stage> for Worker {
120120

121121
#[derive(Deserialize)]
122122
pub struct Config {
123-
bucket: String,
124-
items_per_batch: u32,
123+
pub bucket: String,
124+
pub items_per_batch: u32,
125125
}
126126

127127
impl Config {

src/sources/u5c.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,10 @@ pub struct Stage {
165165

166166
#[derive(Deserialize)]
167167
pub struct Config {
168-
url: String,
169-
metadata: HashMap<String, String>,
168+
pub url: String,
169+
pub metadata: HashMap<String, String>,
170170
#[serde(default)]
171-
use_parsed_blocks: bool,
171+
pub use_parsed_blocks: bool,
172172
}
173173

174174
impl Config {

0 commit comments

Comments
 (0)