Skip to content

Commit

Permalink
rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
yuunlimm committed Jul 25, 2024
1 parent 53cd334 commit 855062d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
3 changes: 1 addition & 2 deletions rust/processor/src/processors/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,7 @@ impl ProcessorConfig {
| ProcessorConfig::ParquetFungibleAssetProcessor(_)
| ProcessorConfig::ParquetTransactionMetadataProcessor(_)
| ProcessorConfig::ParquetAnsProcessor(_)
| ProcessorConfig::ParquetEventsProcessor(_)

| ProcessorConfig::ParquetEventsProcessor(_)
)
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright © Aptos Foundation
// SPDX-License-Identifier: Apache-2.0

use super::{UploadIntervalConfig, GOOGLE_APPLICATION_CREDENTIALS};
use super::ParquetProcessorTrait;
use crate::{
bq_analytics::{
create_parquet_handler_loop, generic_parquet_processor::ParquetDataGeneric,
Expand Down Expand Up @@ -40,7 +40,7 @@ pub struct ParquetAnsProcessorConfig {
pub parquet_upload_interval: u64,
}

impl UploadIntervalConfig for ParquetAnsProcessorConfig {
impl ParquetProcessorTrait for ParquetAnsProcessorConfig {
fn parquet_upload_interval_in_secs(&self) -> Duration {
Duration::from_secs(self.parquet_upload_interval)
}
Expand All @@ -58,9 +58,7 @@ impl ParquetAnsProcessor {
config: ParquetAnsProcessorConfig,
new_gap_detector_sender: AsyncSender<ProcessingResult>,
) -> Self {
if let Some(credentials) = config.google_application_credentials.clone() {
std::env::set_var(GOOGLE_APPLICATION_CREDENTIALS, credentials);
}
config.set_google_credentials(config.google_application_credentials.clone());

let ans_primary_name_v2_sender = create_parquet_handler_loop::<AnsPrimaryNameV2>(
new_gap_detector_sender.clone(),
Expand Down

0 comments on commit 855062d

Please sign in to comment.