Skip to content

Commit

Permalink
Fixed compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
avbel committed Jan 2, 2024
1 parent 9dfafd0 commit 019d264
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
6 changes: 2 additions & 4 deletions rust/processor/src/processors/default_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use crate::{
PgPoolConnection,
}, processors::{events_processor::insert_events_to_db, /*token_processor::insert_tokens_to_db, token_v2_processor::insert_token_v2_to_db,*/ user_transaction_processor::insert_user_transactions_to_db},
};
use aptos_protos::transaction::v1::{write_set_change::Change, Transaction, transaction::TxnData};
use aptos_protos::transaction::v1::{Transaction, transaction::TxnData};
use async_trait::async_trait;
use diesel::{result::Error};
use field_count::FieldCount;
Expand All @@ -28,14 +28,12 @@ pub struct DefaultProcessorConfig {

pub struct DefaultProcessor {
connection_pool: PgDbPool,
config: DefaultProcessorConfig,
}

impl DefaultProcessor {
pub fn new(connection_pool: PgDbPool, config: DefaultProcessorConfig) -> Self {
pub fn new(connection_pool: PgDbPool) -> Self {
Self {
connection_pool,
config,
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions rust/processor/src/processors/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use self::{
account_transactions_processor::AccountTransactionsProcessor,
ans_processor::{AnsProcessor, AnsProcessorConfig},
coin_processor::CoinProcessor,
default_processor::{DefaultProcessor, DefaultProcessorConfig},
default_processor::{DefaultProcessor},
events_processor::EventsProcessor,
fungible_asset_processor::FungibleAssetProcessor,
nft_metadata_processor::{NftMetadataProcessor, NftMetadataProcessorConfig},
Expand Down Expand Up @@ -161,7 +161,7 @@ pub enum ProcessorConfig {
AccountTransactionsProcessor,
AnsProcessor(AnsProcessorConfig),
CoinProcessor,
DefaultProcessor(DefaultProcessorConfig),
DefaultProcessor,
EventsProcessor,
FungibleAssetProcessor,
NftMetadataProcessor(NftMetadataProcessorConfig),
Expand Down
2 changes: 1 addition & 1 deletion rust/processor/src/worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ pub fn build_processor(config: &ProcessorConfig, db_pool: PgDbPool) -> Processor
Processor::from(AnsProcessor::new(db_pool, config.clone()))
},
ProcessorConfig::CoinProcessor => Processor::from(CoinProcessor::new(db_pool)),
ProcessorConfig::DefaultProcessor(config) => Processor::from(DefaultProcessor::new(db_pool, config.clone())),
ProcessorConfig::DefaultProcessor => Processor::from(DefaultProcessor::new(db_pool)),
ProcessorConfig::EventsProcessor => Processor::from(EventsProcessor::new(db_pool)),
ProcessorConfig::FungibleAssetProcessor => {
Processor::from(FungibleAssetProcessor::new(db_pool))
Expand Down

0 comments on commit 019d264

Please sign in to comment.