Skip to content

Commit

Permalink
fix: use Base.encode16 option instead of separate call
Browse files Browse the repository at this point in the history
  • Loading branch information
hauleth committed Oct 16, 2023
1 parent 218b42b commit c374d38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/logflare/backends/adaptor/postgres_adaptor/pg_repo.ex
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ defmodule Logflare.Backends.Adaptor.PostgresAdaptor.PgRepo do
@spec get_repo_module(SourceBackend.t()) :: Ecto.Repo.t()
def get_repo_module(%SourceBackend{config: config, source: %Source{}}) do
data = inspect(config)
sha256 = :crypto.hash(:sha256, data) |> Base.encode16() |> String.downcase()
sha256 = :crypto.hash(:sha256, data) |> Base.encode16(case: :lower)
Module.concat([Logflare.Repo.Postgres, "Adaptor#{sha256}"])
end

Expand Down

0 comments on commit c374d38

Please sign in to comment.