Skip to content

Commit

Permalink
Merge pull request #26 from golemcloud/fix-typo
Browse files Browse the repository at this point in the history
Fix typo
  • Loading branch information
vigoo authored Dec 3, 2024
2 parents 1ae0dc4 + 02401eb commit 878cc1a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions golem-rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<f64>,
pub max_jitter_factor: Option<f64>,
}

impl From<bindings::golem::api::host::RetryPolicy> for RetryPolicy {
Expand All @@ -53,7 +53,7 @@ impl From<bindings::golem::api::host::RetryPolicy> 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,
}
}
}
Expand All @@ -65,7 +65,7 @@ impl From<RetryPolicy> 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,
}
}
}
Expand Down

0 comments on commit 878cc1a

Please sign in to comment.