Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Della Vedova <lucadv@intrinsic.ai>
  • Loading branch information
luca-della-vedova committed Sep 13, 2023
1 parent 632e082 commit 7e536e0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions rclrs/src/node/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ impl NodeBuilder {
)?
};
let rcl_node_mtx = Arc::new(Mutex::new(rcl_node));
let node = Arc::new_cyclic(|weak| Node {
Ok(Arc::new_cyclic(|weak| Node {
rcl_node_mtx,
rcl_context_mtx: self.context.clone(),
clients_mtx: Mutex::new(vec![]),
Expand All @@ -289,9 +289,7 @@ impl NodeBuilder {
subscriptions_mtx: Mutex::new(vec![]),
_time_source: TimeSource::new(weak.clone(), self.clock_type),
_parameter_map,
});

Ok(node)
}))
}

/// Creates a rcl_node_options_t struct from this builder.
Expand Down

0 comments on commit 7e536e0

Please sign in to comment.