Skip to content

Commit 012ff2e

Browse files
committed
Make deadline, liveliness_lease, and lifespan all symmetric
Signed-off-by: Michael X. Grey <[email protected]>
1 parent 126aaca commit 012ff2e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

rclrs/src/node/primitive_options.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pub struct PrimitiveOptions<'a> {
3737
pub lifespan: Option<QoSDuration>,
3838
/// Override the default [`QoSProfile::liveliness`] for the primitive.
3939
pub liveliness: Option<QoSLivelinessPolicy>,
40-
/// Override the default [`QoSProfile::liveliness_lease_duration`] for the primitive.
40+
/// Override the default [`QoSProfile::liveliness_lease`] for the primitive.
4141
pub liveliness_lease: Option<QoSDuration>,
4242
/// Override the default [`QoSProfile::avoid_ros_namespace_conventions`] for the primitive.
4343
pub avoid_ros_namespace_conventions: Option<bool>,

rclrs/src/qos.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ impl QoSProfile {
244244
}
245245

246246
/// Sets the QoS profile deadline to the specified `Duration`.
247-
pub fn deadline(mut self, deadline: Duration) -> Self {
247+
pub fn deadline_duration(mut self, deadline: Duration) -> Self {
248248
self.deadline = QoSDuration::Custom(deadline);
249249
self
250250
}
@@ -256,7 +256,7 @@ impl QoSProfile {
256256
}
257257

258258
/// Sets the QoS profile lifespan to the specified `Duration`.
259-
pub fn lifespan(mut self, lifespan: Duration) -> Self {
259+
pub fn lifespan_duration(mut self, lifespan: Duration) -> Self {
260260
self.lifespan = QoSDuration::Custom(lifespan);
261261
self
262262
}

0 commit comments

Comments
 (0)