Skip to content

Commit

Permalink
Use module macro instead of raw name when it applies
Browse files Browse the repository at this point in the history
  • Loading branch information
NelsonVides committed Nov 28, 2024
1 parent 6e2b022 commit b2f97c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/throttle/amoc_throttle_pooler.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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() ->
Expand Down

0 comments on commit b2f97c5

Please sign in to comment.