Skip to content

Commit f3e579c

Browse files
committed
Starting with Electric v1.0.6 it is not necessary to explicitly obfuscate the DB password
1 parent 61899e2 commit f3e579c

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

config/runtime.exs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,9 @@ if config_env() == :test do
55
default_database_url = "postgresql://postgres:password@localhost:54321/electric?sslmode=disable"
66
database_url = System.get_env("DATABASE_URL", default_database_url)
77

8-
connection_opts = Electric.Config.parse_postgresql_uri!(database_url)
9-
108
config :electric,
119
start_in_library_mode: true,
12-
connection_opts: Electric.Utils.obfuscate_password(connection_opts),
10+
connection_opts: Electric.Config.parse_postgresql_uri!(database_url),
1311
# enable the http api so that the client tests against a real endpoint can
1412
# run against our embedded electric instance.
1513
# enable_http_api: true,

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ defmodule Phoenix.Sync.MixProject do
3838
{:ecto_sql, "~> 3.10", optional: true},
3939
# require an exact version because electric moves very quickly atm
4040
# and a more generous specification would inevitably break.
41-
{:electric, "== 1.0.1", optional: true},
41+
{:electric, "== 1.0.6", optional: true},
4242
{:electric_client, "== 0.3.0"}
4343
] ++ deps_for_env(Mix.env())
4444
end

0 commit comments

Comments
 (0)