Skip to content

Commit

Permalink
fix(node-wasm)!: use camelCase in config fields (#528)
Browse files Browse the repository at this point in the history
  • Loading branch information
zvolin authored Jan 28, 2025
1 parent a2213af commit 7c5368f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions node-wasm/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ pub struct WasmNodeConfig {
/// Whether to store data in persistent memory or not.
///
/// **Default value:** true
#[wasm_bindgen(js_name = usePersistentMemory)]
pub use_persistent_memory: bool,
/// Sampling window defines maximum age of a block considered for syncing and sampling.
///
Expand All @@ -47,6 +48,7 @@ pub struct WasmNodeConfig {
/// * If `use_persistent_memory == false`, default value is 60 seconds.
///
/// The minimum value that can be set is 60 seconds.
#[wasm_bindgen(js_name = customSamplingWindowSecs)]
pub custom_sampling_window_secs: Option<u32>,
/// Pruning delay defines how much time the pruner should wait after sampling window in
/// order to prune the block.
Expand All @@ -57,6 +59,7 @@ pub struct WasmNodeConfig {
/// * If `use_persistent_memory == false`, default value is 60 seconds.
///
/// The minimum value that can be set is 60 seconds.
#[wasm_bindgen(js_name = customPruningDelaySecs)]
pub custom_pruning_delay_secs: Option<u32>,
}

Expand Down

0 comments on commit 7c5368f

Please sign in to comment.