Skip to content

Commit

Permalink
Merge pull request #141 from movementlabsxyz/mikhail/cut-out-indexer-…
Browse files Browse the repository at this point in the history
…cloud-storage

feat!(indexer-grpc-utils): Cut out cloud-storage dependency from indexer-grpc
  • Loading branch information
l-monninger authored Feb 28, 2025
2 parents 075f67d + 8f4ba8a commit 2d6287a
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 317 deletions.
100 changes: 8 additions & 92 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -508,10 +508,6 @@ claims = "0.7"
clap = { version = "4.3.9", features = ["derive", "env", "unstable-styles"] }
clap-verbosity-flag = "2.1.1"
clap_complete = "4.4.1"
cloud-storage = { version = "0.11.1", features = [
"global-client",
"rustls-tls",
], default-features = false }
codespan = "0.11.1"
codespan-reporting = "0.11.1"
colored = "2.0.0"
Expand Down
1 change: 0 additions & 1 deletion ecosystem/indexer-grpc/indexer-grpc-utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ async-trait = { workspace = true }
backoff = { workspace = true }
base64 = { workspace = true }
chrono = { workspace = true }
cloud-storage = { workspace = true }
dashmap = { workspace = true }
futures = { workspace = true }
itertools = { workspace = true }
Expand Down
10 changes: 0 additions & 10 deletions ecosystem/indexer-grpc/indexer-grpc-utils/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ const fn default_enable_compression() -> bool {
#[derive(Serialize, Deserialize, Debug, Clone)]
#[serde(tag = "file_store_type")]
pub enum IndexerGrpcFileStoreConfig {
GcsFileStore(GcsFileStore),
LocalFileStore(LocalFileStore),
}

Expand All @@ -44,15 +43,6 @@ impl Default for IndexerGrpcFileStoreConfig {
impl IndexerGrpcFileStoreConfig {
pub fn create(&self) -> Box<dyn crate::file_store_operator::FileStoreOperator> {
match self {
IndexerGrpcFileStoreConfig::GcsFileStore(gcs_file_store) => {
Box::new(crate::file_store_operator::gcs::GcsFileStoreOperator::new(
gcs_file_store.gcs_file_store_bucket_name.clone(),
gcs_file_store
.gcs_file_store_service_account_key_path
.clone(),
gcs_file_store.enable_compression,
))
},
IndexerGrpcFileStoreConfig::LocalFileStore(local_file_store) => Box::new(
crate::file_store_operator::local::LocalFileStoreOperator::new(
local_file_store.local_file_store_path.clone(),
Expand Down
Loading

0 comments on commit 2d6287a

Please sign in to comment.