Skip to content

Commit c786ab9

Browse files
committed
Add GcpFileUploader factory
1 parent 3e59dab commit c786ab9

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

mithril-aggregator/src/tools/remote_file_uploader.rs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,16 @@ pub struct GcpFileUploader {
2525
bucket: String,
2626
}
2727

28+
impl GcpFileUploader {
29+
/// GcpFileUploader factory
30+
pub fn new(bucket: String) -> Self {
31+
Self { bucket }
32+
}
33+
}
34+
2835
impl Default for GcpFileUploader {
2936
fn default() -> Self {
30-
Self {
31-
bucket: "cardano-testnet".to_string(),
32-
}
37+
Self::new("cardano-testnet".to_string())
3338
}
3439
}
3540

0 commit comments

Comments
 (0)