From b2f97c55b193c6022c3f4dc51ceb02c0bbb9525a Mon Sep 17 00:00:00 2001 From: Nelson Vides Date: Thu, 28 Nov 2024 07:43:35 +0100 Subject: [PATCH] Use module macro instead of raw name when it applies --- src/throttle/amoc_throttle_pooler.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/throttle/amoc_throttle_pooler.erl b/src/throttle/amoc_throttle_pooler.erl index 87cd4262..8f2dabd0 100644 --- a/src/throttle/amoc_throttle_pooler.erl +++ b/src/throttle/amoc_throttle_pooler.erl @@ -11,11 +11,11 @@ -spec start_pool(amoc_throttle:name(), amoc_throttle_config:pool_config()) -> supervisor:startchild_ret(). start_pool(Name, PoolConfig) -> - supervisor:start_child(amoc_throttle_pooler, [Name, PoolConfig]). + supervisor:start_child(?MODULE, [Name, PoolConfig]). -spec stop_pool(pid()) -> ok. stop_pool(Pool) -> - ok = supervisor:terminate_child(amoc_throttle_pooler, Pool). + ok = supervisor:terminate_child(?MODULE, Pool). -spec start_link() -> supervisor:startlink_ret(). start_link() ->