diff --git a/rmw_zenoh_cpp/src/detail/rmw_context_impl_s.cpp b/rmw_zenoh_cpp/src/detail/rmw_context_impl_s.cpp index 98e637a3..bba9d5b0 100644 --- a/rmw_zenoh_cpp/src/detail/rmw_context_impl_s.cpp +++ b/rmw_zenoh_cpp/src/detail/rmw_context_impl_s.cpp @@ -98,7 +98,7 @@ class rmw_context_impl_s::Data final std::move(config.value()), zenoh::Session::SessionOptions::create_default(), &result); - if(result != Z_OK) { + if (result != Z_OK) { throw std::runtime_error("Error setting up zenoh session. "); } @@ -225,7 +225,7 @@ class rmw_context_impl_s::Data final data_shared_ptr->update_graph_cache( sample, std::string(sample.get_keyexpr().as_string_view())); - }, + }, zenoh::closures::none, std::move(sub_options), &err);