From 6d729a4d20944b990c341149729a810a2898cdff Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 18 Sep 2023 20:35:55 +0200 Subject: refactor: make threadsafe castable factory take DI container param --- macros/src/factory/build_declare_interfaces.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'macros') diff --git a/macros/src/factory/build_declare_interfaces.rs b/macros/src/factory/build_declare_interfaces.rs index f256c7b..1e2d62e 100644 --- a/macros/src/factory/build_declare_interfaces.rs +++ b/macros/src/factory/build_declare_interfaces.rs @@ -12,19 +12,19 @@ pub fn build_declare_factory_interfaces( quote! { syrette::declare_interface!( syrette::private::castable_factory::threadsafe::ThreadsafeCastableFactory< - (std::sync::Arc,), - #factory_interface + #factory_interface, + syrette::di_container::asynchronous::AsyncDIContainer, > -> syrette::private::factory::IThreadsafeFactory< - (std::sync::Arc,), - #factory_interface + #factory_interface, + syrette::di_container::asynchronous::AsyncDIContainer, >, threadsafe_sharable = true ); syrette::declare_interface!( syrette::private::castable_factory::threadsafe::ThreadsafeCastableFactory< - (std::sync::Arc,), - #factory_interface + #factory_interface, + syrette::di_container::asynchronous::AsyncDIContainer, > -> syrette::private::any_factory::AnyThreadsafeFactory, threadsafe_sharable = true ); -- cgit v1.2.3-18-g5258