Skip to content

Commit

Permalink
Fix compile-time warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Cafasso <[email protected]>
  • Loading branch information
noxdafox committed Jan 27, 2024
1 parent d3a9cd8 commit e42c1b7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/rabbitmq_message_deduplication/cache.ex
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ defmodule RabbitMQMessageDeduplication.Cache do
alias :mnesia, as: Mnesia

@options [:size, :ttl, :distributed, :limit, :default_ttl]
@cache_wait_time Application.get_env(:rabbitmq_message_deduplication, :cache_wait_time)
@cache_wait_time Application.compile_env(:rabbitmq_message_deduplication, :cache_wait_time)

@doc """
Create a new cache with the given name and options.
Expand Down
4 changes: 2 additions & 2 deletions lib/rabbitmq_message_deduplication/cache_manager.ex
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ defmodule RabbitMQMessageDeduplication.CacheManager do
enables: :external_infrastructure]}

@caches :message_deduplication_caches
@cache_wait_time Application.get_env(:rabbitmq_message_deduplication, :cache_wait_time)
@cleanup_period Application.get_env(:rabbitmq_message_deduplication, :cache_cleanup_period)
@cache_wait_time Application.compile_env(:rabbitmq_message_deduplication, :cache_wait_time)
@cleanup_period Application.compile_env(:rabbitmq_message_deduplication, :cache_cleanup_period)

def start_link() do
GenServer.start_link(__MODULE__, %{}, name: __MODULE__)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ defmodule RabbitMQMessageDeduplication.Queue do
passthrough do: zip_msgs_and_acks(delivered_publish, acks, acc, qs)
end

@impl :rabbit_backing_queue
# Not present anymore in recent versions of RMQ, keeping for old ones
def handle_info(term, state = dqstate(queue_state: qs)) do
passthrough1(state, do: set_queue_mode(term, qs))
end
Expand Down

0 comments on commit e42c1b7

Please sign in to comment.