Skip to content

Commit

Permalink
refactor: move gcp_file_uploader to file_uploaders module
Browse files Browse the repository at this point in the history
  • Loading branch information
dlachaume committed Dec 10, 2024
1 parent e94f123 commit 960ad53
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion mithril-aggregator/src/dependency_injection/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ use crate::{
},
entities::AggregatorEpochSettings,
event_store::{EventMessage, EventStore, TransmitterService},
file_uploaders::GcpFileUploader,
http_server::routes::router::{self, RouterConfig, RouterState},
services::{
AggregatorSignableSeedBuilder, AggregatorUpkeepService, BufferedCertifierService,
Expand All @@ -74,7 +75,7 @@ use crate::{
UpkeepService, UsageReporter,
},
store::CertificatePendingStorer,
tools::{CExplorerSignerRetriever, GcpFileUploader, GenesisToolsDependency, SignersImporter},
tools::{CExplorerSignerRetriever, GenesisToolsDependency, SignersImporter},
AggregatorConfig, AggregatorRunner, AggregatorRuntime, CompressedArchiveSnapshotter,
Configuration, DependencyContainer, DumbFileUploader, DumbSnapshotter, EpochSettingsStorer,
FileUploader, LocalFileUploader, MetricsService, MithrilSignerRegisterer, MultiSigner,
Expand Down
2 changes: 2 additions & 0 deletions mithril-aggregator/src/file_uploaders/mod.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
mod dumb_file_uploader;
mod file_uploader;
mod gcp_file_uploader;
mod local_file_uploader;
mod remote_file_uploader;

pub use dumb_file_uploader::*;
pub use file_uploader::FileLocation;
pub use file_uploader::FileUploader;
pub use gcp_file_uploader::GcpFileUploader;
pub use local_file_uploader::LocalFileUploader;
pub use remote_file_uploader::RemoteSnapshotUploader;

Expand Down
2 changes: 0 additions & 2 deletions mithril-aggregator/src/tools/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
mod certificates_hash_migrator;
mod digest_helpers;
mod era;
mod gcp_file_uploader;
mod genesis;
#[cfg(test)]
pub mod mocks;
Expand All @@ -11,7 +10,6 @@ mod single_signature_authenticator;
pub use certificates_hash_migrator::CertificatesHashMigrator;
pub use digest_helpers::extract_digest_from_path;
pub use era::EraTools;
pub use gcp_file_uploader::GcpFileUploader;
pub use genesis::{GenesisTools, GenesisToolsDependency};
pub use signer_importer::{
CExplorerSignerRetriever, SignersImporter, SignersImporterPersister, SignersImporterRetriever,
Expand Down

0 comments on commit 960ad53

Please sign in to comment.