Skip to content

Commit

Permalink
refactor: pass event through middleware too (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
3Hren authored Nov 22, 2016
1 parent e2077ef commit 0d4c35a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/cocaine/rpc/dispatch.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ struct slot_builder<Event, executor_state<F, R>> {
auto operator()(Args&&... args) ->
decltype(fn(std::forward<Args>(args)...))
{
return middleware(fn, std::forward<Args>(args)...);
return middleware(fn, Event(), std::forward<Args>(args)...);
}
};

Expand Down

0 comments on commit 0d4c35a

Please sign in to comment.