Skip to content

Commit

Permalink
Make deadline, liveliness_lease, and lifespan all symmetric
Browse files Browse the repository at this point in the history
Signed-off-by: Michael X. Grey <greyxmike@gmail.com>
  • Loading branch information
mxgrey committed Nov 21, 2024
1 parent 126aaca commit 012ff2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rclrs/src/node/primitive_options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pub struct PrimitiveOptions<'a> {
pub lifespan: Option<QoSDuration>,
/// Override the default [`QoSProfile::liveliness`] for the primitive.
pub liveliness: Option<QoSLivelinessPolicy>,
/// Override the default [`QoSProfile::liveliness_lease_duration`] for the primitive.
/// Override the default [`QoSProfile::liveliness_lease`] for the primitive.
pub liveliness_lease: Option<QoSDuration>,
/// Override the default [`QoSProfile::avoid_ros_namespace_conventions`] for the primitive.
pub avoid_ros_namespace_conventions: Option<bool>,
Expand Down
4 changes: 2 additions & 2 deletions rclrs/src/qos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ impl QoSProfile {
}

/// Sets the QoS profile deadline to the specified `Duration`.
pub fn deadline(mut self, deadline: Duration) -> Self {
pub fn deadline_duration(mut self, deadline: Duration) -> Self {
self.deadline = QoSDuration::Custom(deadline);
self
}
Expand All @@ -256,7 +256,7 @@ impl QoSProfile {
}

/// Sets the QoS profile lifespan to the specified `Duration`.
pub fn lifespan(mut self, lifespan: Duration) -> Self {
pub fn lifespan_duration(mut self, lifespan: Duration) -> Self {
self.lifespan = QoSDuration::Custom(lifespan);
self
}
Expand Down

0 comments on commit 012ff2e

Please sign in to comment.