diff --git a/golem-rust/src/lib.rs b/golem-rust/src/lib.rs index 50152f9..7e697dd 100644 --- a/golem-rust/src/lib.rs +++ b/golem-rust/src/lib.rs @@ -43,7 +43,7 @@ pub struct RetryPolicy { pub min_delay: std::time::Duration, pub max_delay: std::time::Duration, pub multiplier: f64, - pub max_jitter_factory: Option, + pub max_jitter_factor: Option, } impl From for RetryPolicy { @@ -53,7 +53,7 @@ impl From for RetryPolicy { min_delay: std::time::Duration::from_nanos(value.min_delay), max_delay: std::time::Duration::from_nanos(value.max_delay), multiplier: value.multiplier, - max_jitter_factory: value.max_jitter_factor, + max_jitter_factor: value.max_jitter_factor, } } } @@ -65,7 +65,7 @@ impl From for bindings::golem::api::host::RetryPolicy { min_delay: val.min_delay.as_nanos() as u64, max_delay: val.max_delay.as_nanos() as u64, multiplier: val.multiplier, - max_jitter_factor: val.max_jitter_factory, + max_jitter_factor: val.max_jitter_factor, } } }