aboutsummaryrefslogtreecommitdiff
path: root/macros/src/factory
diff options
context:
space:
mode:
Diffstat (limited to 'macros/src/factory')
-rw-r--r--macros/src/factory/build_declare_interfaces.rs2
-rw-r--r--macros/src/factory/declare_default_args.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/macros/src/factory/build_declare_interfaces.rs b/macros/src/factory/build_declare_interfaces.rs
index ac4ddd6..61e162f 100644
--- a/macros/src/factory/build_declare_interfaces.rs
+++ b/macros/src/factory/build_declare_interfaces.rs
@@ -14,7 +14,7 @@ pub fn build_declare_factory_interfaces(
syrette::castable_factory::threadsafe::ThreadsafeCastableFactory<
(std::sync::Arc<syrette::async_di_container::AsyncDIContainer>,),
#factory_interface
- > -> syrette::interfaces::factory::IFactory<
+ > -> syrette::interfaces::factory::IThreadsafeFactory<
(std::sync::Arc<syrette::async_di_container::AsyncDIContainer>,),
#factory_interface
>,
diff --git a/macros/src/factory/declare_default_args.rs b/macros/src/factory/declare_default_args.rs
index 6450583..d19eba8 100644
--- a/macros/src/factory/declare_default_args.rs
+++ b/macros/src/factory/declare_default_args.rs
@@ -5,7 +5,7 @@ use syn::{Token, Type};
use crate::macro_flag::MacroFlag;
use crate::util::iterator_ext::IteratorExt;
-pub const FACTORY_MACRO_FLAGS: &[&str] = &["threadsafe"];
+pub const FACTORY_MACRO_FLAGS: &[&str] = &["threadsafe", "async"];
pub struct DeclareDefaultFactoryMacroArgs
{