Skip to content

Commit

Permalink
Linters
Browse files Browse the repository at this point in the history
  • Loading branch information
MaeIsBad committed Jan 6, 2025
1 parent 9e5bab3 commit 07725d8
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/amqp/gen/connection_manager.ex
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ defmodule Amqpx.Gen.ConnectionManager do
end

def handle_info(message, state) do
Logger.warn("Unknown message received #{inspect(message)}")
Logger.warning("Unknown message received #{inspect(message)}")
{:noreply, state}
end

Expand Down
2 changes: 1 addition & 1 deletion lib/amqp/gen/consumer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ defmodule Amqpx.Gen.Consumer do
def handle_info({:EXIT, _, :normal}, state), do: {:noreply, state}

def handle_info(message, state) do
Logger.warn("Unknown message received #{inspect(message)}")
Logger.warning("Unknown message received #{inspect(message)}")
{:noreply, state}
end

Expand Down
2 changes: 1 addition & 1 deletion lib/amqp/gen/producer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ defmodule Amqpx.Gen.Producer do
def handle_info({:EXIT, _, :normal}, state), do: {:noreply, state}

def handle_info(message, state) do
Logger.warn("Unknown message received #{inspect(message)}")
Logger.warning("Unknown message received #{inspect(message)}")
{:noreply, state}
end

Expand Down
2 changes: 1 addition & 1 deletion lib/amqp/helper.ex
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ defmodule Amqpx.Helper do
"If x-dead-letter-exchange is an empty string, x-dead-letter-routing-key should be '#{dlq}' instead of '#{bad_dlq}'"

if Enum.member?(skip_dead_letter_routing_key_check_for(), bad_dlq) do
Logger.warn(msg)
Logger.warning(msg)
else
raise msg
end
Expand Down
4 changes: 2 additions & 2 deletions test/connection_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ defmodule ConnectionTest do

@obfuscate_password false

@invalid_ip '192.168.1.1'
@valid_ip '192.168.1.2'
@invalid_ip ~c"192.168.1.1"
@valid_ip ~c"192.168.1.2"

@open_options [
username: "amqpx",
Expand Down

0 comments on commit 07725d8

Please sign in to comment.