Skip to content

Commit

Permalink
clean up ets
Browse files Browse the repository at this point in the history
  • Loading branch information
grzuy committed Aug 8, 2024
1 parent 9eafd24 commit d42a702
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/tower/logger_handler.ex
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ defmodule Tower.LoggerHandler do
end

def removing_handler(_config) do
rate_limiter_delete()

:ok
end

Expand Down Expand Up @@ -178,6 +180,10 @@ defmodule Tower.LoggerHandler do
RateLimiter.new(@handler_id, burst_limit_period, burst_limit_hits)
end

defp rate_limiter_delete do
RateLimiter.delete(@handler_id)
end

defp rate_limiter do
RateLimiter.get!(@handler_id)
end
Expand Down

0 comments on commit d42a702

Please sign in to comment.