mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 09:07:09 +08:00
feat(router): add opt-in mimalloc feature (#141)
Co-authored-by: Sanchith Hegde <22217505+SanchithHegde@users.noreply.github.com>
This commit is contained in:
@ -50,6 +50,10 @@ use crate::{
|
||||
core::errors::{self, BachResult},
|
||||
};
|
||||
|
||||
#[cfg(feature = "mimalloc")]
|
||||
#[global_allocator]
|
||||
static ALLOC: mimalloc::MiMalloc = mimalloc::MiMalloc;
|
||||
|
||||
/// Header Constants
|
||||
pub mod headers {
|
||||
pub const X_API_KEY: &str = "X-API-KEY";
|
||||
|
||||
Reference in New Issue
Block a user