From 2800ebe1ca687858404f15887aa795b3447c7c0e Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Wed, 26 Mar 2025 18:55:02 -0400 Subject: [PATCH] common/async: fix multiple definition errors with spawn_throttle_impl Signed-off-by: Casey Bodley --- src/common/async/detail/spawn_throttle_impl.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/async/detail/spawn_throttle_impl.h b/src/common/async/detail/spawn_throttle_impl.h index 9030f266233..75a28ac48e7 100644 --- a/src/common/async/detail/spawn_throttle_impl.h +++ b/src/common/async/detail/spawn_throttle_impl.h @@ -169,7 +169,7 @@ struct spawn_throttle_handler { } }; -spawn_throttle_handler spawn_throttle_impl::get() +inline spawn_throttle_handler spawn_throttle_impl::get() { report_exception(); // throw unreported exception @@ -345,8 +345,8 @@ class async_spawn_throttle_impl final : } }; -auto spawn_throttle_impl::create(optional_yield y, size_t limit, - cancel_on_error on_error) +inline auto spawn_throttle_impl::create(optional_yield y, size_t limit, + cancel_on_error on_error) -> boost::intrusive_ptr { if (y) { -- 2.39.5