Skip to content

Commit

Permalink
Update to use Response and Request
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesschrimpf committed Dec 4, 2023
1 parent 9fa4118 commit ab866d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tyndall/ros_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ template <typename Service, typename Id> int lazy_serve(Service &srv, Id) {
{
std::lock_guard<typeof(save_mutex)> guard(save_mutex);

save.response = srv.response; // set new response
save.Response = srv.Response; // set new response

if (new_save) {
new_save = false;
Expand Down Expand Up @@ -177,8 +177,8 @@ template <typename Service, typename Id> int lazy_serve(Service &srv, Id) {
[](typename Service::Request::SharedPtr req,
typename Service::Response::SharedPtr rep) -> bool {
std::lock_guard<typeof(save_mutex)> guard(save_mutex);
rep = save.response;
save.request = req;
rep = save.Response;
save.Request = req;
new_save = true;
valid_save = true;
return true;
Expand Down

0 comments on commit ab866d0

Please sign in to comment.