Skip to content

Commit

Permalink
fix deprecation warnings (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
VitorTrin authored Jan 24, 2024
1 parent c2de899 commit 3d5fedf
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config/config.exs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
import Config

config :kayrock,
connection_opts: [
Expand Down
2 changes: 1 addition & 1 deletion lib/kayrock/error_code.ex
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ defmodule Kayrock.ErrorCode do
end

def code_to_atom(code) do
Logger.warn("Unknown error code #{inspect(code)}")
Logger.warning("Unknown error code #{inspect(code)}")
:unknown
end

Expand Down
2 changes: 1 addition & 1 deletion lib/kayrock/message_set.ex
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ defmodule Kayrock.MessageSet do
@type t :: %__MODULE__{}
end

use Bitwise
import Bitwise

defstruct messages: [], magic: 0

Expand Down
2 changes: 1 addition & 1 deletion lib/kayrock/record_batch.ex
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ defmodule Kayrock.RecordBatch do

@type t :: %__MODULE__{}

use Bitwise
import Bitwise

alias Kayrock.Compression
alias Kayrock.MessageSet
Expand Down

0 comments on commit 3d5fedf

Please sign in to comment.