Skip to content

Commit

Permalink
fix: some compilation warnings about unused stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
hauleth committed Aug 22, 2024
1 parent daaf6db commit a7ced70
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion lib/supavisor/client_handler.ex
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,10 @@ defmodule Supavisor.ClientHandler do
{:next_state, :idle, %{data | db_pid: db_pid, stats: stats}, handle_actions(data)}

:read_sql_error ->
Logger.error("ClientHandler: read only sql transaction, reruning the query to write pool")
Logger.error(
"ClientHandler: read only sql transaction, rerunning the query to write pool"
)

# release the read pool
_ = handle_db_pid(data.mode, data.pool, data.db_pid)

Expand Down
4 changes: 2 additions & 2 deletions lib/supavisor/manager.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ defmodule Supavisor.Manager do
use GenServer, restart: :transient
require Logger

alias Supavisor.Helpers, as: H
alias Supavisor.Protocol.Server
alias Supavisor.Tenants
alias Supavisor.Helpers

@check_timeout 120_000

Expand Down Expand Up @@ -34,7 +34,7 @@ defmodule Supavisor.Manager do

@impl true
def init(args) do
H.set_log_level(args.log_level)
Helpers.set_log_level(args.log_level)
tid = :ets.new(__MODULE__, [:protected])

[args | _] = Enum.filter(args.replicas, fn e -> e.replica_type == :write end)
Expand Down

0 comments on commit a7ced70

Please sign in to comment.