Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

fix(multitenancy): remove tenant id from redis stream key of kafkaStore (#4916)

Jagan9c7dcbe1a042
diff --git a/crates/router/src/db/kafka_store.rs b/crates/router/src/db/kafka_store.rs
index c360b41a6c..0545191318 100644
--- a/crates/router/src/db/kafka_store.rs
+++ b/crates/router/src/db/kafka_store.rs
@@ -1109,9 +1109,8 @@ impl QueueInterface for KafkaStore {
entry_id: &RedisEntryId,
fields: Vec<(&str, String)>,
) -> CustomResult<(), RedisError> {
- let stream_name = format!("{}_{}", &self.tenant_id.0, stream);
self.diesel_store
- .stream_append_entry(&stream_name, entry_id, fields)
+ .stream_append_entry(stream, entry_id, fields)
.await
}