Skip to content

Commit

Permalink
Fixed some typos in the HTTP example
Browse files Browse the repository at this point in the history
  • Loading branch information
yassiezar committed Aug 4, 2023
1 parent 0f5b5c6 commit fa1248c
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ class CbHttpRequest : public smacc2::SmaccClientBehavior {
public:
template <typename TOrthogonal, typename TSourceObject>
void onOrthogonalAllocation() {
triggerTranstition = []() {
triggerTranstition = [this]() {
auto event = new EvHttp<TSourceObject, TOrthogonal>();
this->postEvent(event);
}
};
}

void runtimeConfigure() override {
this->requiresClient(cl_http_);
cl_http->onResponseReceived(&CbHttpRequest::onResponseReceived, this);
cl_http_->onResponseReceived(&CbHttpRequest::onResponseReceived, this);
}

void onResponseReceived() { triggerTranstition(); }
void onResponseReceived(const std::string& response) { triggerTranstition(); }

void onEntry() override {
RCLCPP_INFO(getLogger(), "On Entry!");
Expand All @@ -36,6 +36,6 @@ class CbHttpRequest : public smacc2::SmaccClientBehavior {
private:
smacc2::client_bases::SmaccHttpClient* cl_http_;

std::function<void(const std::string&)> triggerTranstition;
std::function<void()> triggerTranstition;
};
} // namespace sm_atomic_http

0 comments on commit fa1248c

Please sign in to comment.