Skip to content

Commit

Permalink
Keep only olap flag feature for specified functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Aniket Burman authored and Aniket Burman committed Feb 7, 2025
1 parent b1eb5ec commit fbf69b3
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ pub trait PaymentIntentInterface {
storage_scheme: common_enums::MerchantStorageScheme,
) -> error_stack::Result<Vec<PaymentIntent>, errors::StorageError>;

#[cfg(all(any(feature = "v1", feature = "v2"), feature = "olap",))]
#[cfg(feature = "olap")]
async fn get_intent_status_with_count(
&self,
merchant_id: &id_type::MerchantId,
Expand Down
2 changes: 1 addition & 1 deletion crates/router/src/core/payments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5236,7 +5236,7 @@ pub async fn get_payment_filters(
))
}

#[cfg(all(any(feature = "v1", feature = "v2"), feature = "olap",))]
#[cfg(feature = "olap")]
pub async fn get_aggregates_for_payments(
state: SessionState,
merchant: domain::MerchantAccount,
Expand Down
2 changes: 1 addition & 1 deletion crates/router/src/db/kafka_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1850,7 +1850,7 @@ impl PaymentIntentInterface for KafkaStore {
)
.await
}
#[cfg(all(any(feature = "v1", feature = "v2"), feature = "olap",))]
#[cfg(feature = "olap")]
async fn get_intent_status_with_count(
&self,
merchant_id: &id_type::MerchantId,
Expand Down
2 changes: 1 addition & 1 deletion crates/storage_impl/src/mock_db/payment_intent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ impl PaymentIntentInterface for MockDb {
Err(StorageError::MockDbError)?
}

#[cfg(all(any(feature = "v1", feature = "v2"), feature = "olap",))]
#[cfg(feature = "olap")]
async fn get_intent_status_with_count(
&self,
_merchant_id: &common_utils::id_type::MerchantId,
Expand Down
4 changes: 2 additions & 2 deletions crates/storage_impl/src/payments/payment_intent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ impl<T: DatabaseStore> PaymentIntentInterface for KVRouterStore<T> {
.await
}

#[cfg(all(any(feature = "v1", feature = "v2"), feature = "olap",))]
#[cfg(feature = "olap")]
async fn get_intent_status_with_count(
&self,
merchant_id: &common_utils::id_type::MerchantId,
Expand Down Expand Up @@ -770,7 +770,7 @@ impl<T: DatabaseStore> PaymentIntentInterface for crate::RouterStore<T> {
.await
}

#[cfg(all(any(feature = "v1", feature = "v2"), feature = "olap",))]
#[cfg(feature = "olap")]
#[instrument(skip_all)]
async fn get_intent_status_with_count(
&self,
Expand Down

0 comments on commit fbf69b3

Please sign in to comment.