Skip to content

Commit 56e48d4

Browse files
committed
common/async: Completion removes unnecessary bind_executor()
destroy_defer() has already called bind_and_forward() to bind the handler's associated executor Signed-off-by: Casey Bodley <[email protected]>
1 parent 71ed54b commit 56e48d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/async/completion.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ class CompletionImpl final : public Completion<void(Args...), T> {
202202
auto f = bind_and_forward(ex2, std::move(handler), std::move(args));
203203
RebindTraits2::destroy(alloc2, this);
204204
RebindTraits2::deallocate(alloc2, this, 1);
205-
boost::asio::defer(boost::asio::bind_executor(ex2, std::move(f)));
205+
boost::asio::defer(std::move(f));
206206
}
207207
void destroy_dispatch(std::tuple<Args...>&& args) override {
208208
auto w = std::move(work);

0 commit comments

Comments
 (0)