mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 17:19:15 +08:00
refactor(hyperswitch_constraint_graph): Removal of lifetime from the Constraint Graph framework (#5132)
This commit is contained in:
@ -33,12 +33,12 @@ use wasm_bindgen::prelude::*;
|
||||
use crate::utils::JsResultExt;
|
||||
type JsResult = Result<JsValue, JsValue>;
|
||||
|
||||
struct SeedData<'a> {
|
||||
cgraph: hyperswitch_constraint_graph::ConstraintGraph<'a, dir::DirValue>,
|
||||
struct SeedData {
|
||||
cgraph: hyperswitch_constraint_graph::ConstraintGraph<dir::DirValue>,
|
||||
connectors: Vec<ast::ConnectorChoice>,
|
||||
}
|
||||
|
||||
static SEED_DATA: OnceCell<SeedData<'_>> = OnceCell::new();
|
||||
static SEED_DATA: OnceCell<SeedData> = OnceCell::new();
|
||||
static SEED_FOREX: OnceCell<currency_conversion_types::ExchangeRates> = OnceCell::new();
|
||||
|
||||
/// This function can be used by the frontend to educate wasm about the forex rates data.
|
||||
|
||||
Reference in New Issue
Block a user