Skip to content

Commit

Permalink
Merge branch 'main' into chore/postgres_str_test
Browse files Browse the repository at this point in the history
  • Loading branch information
abc3 authored Sep 13, 2023
2 parents 502fc57 + d442708 commit 98307ae
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions lib/realtime/cluster_strategy/postgres.ex
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,14 @@ defmodule Realtime.Cluster.Strategy.Postgres do
def start_link(args), do: GenServer.start_link(__MODULE__, args)

def init([state]) do
opts =
[
hostname: Keyword.fetch!(state.config, :hostname),
username: Keyword.fetch!(state.config, :username),
password: Keyword.fetch!(state.config, :password),
database: Keyword.fetch!(state.config, :database),
port: Keyword.fetch!(state.config, :port),
parameters: Keyword.fetch!(state.config, :parameters)
]
opts = [
hostname: Keyword.fetch!(state.config, :hostname),
username: Keyword.fetch!(state.config, :username),
password: Keyword.fetch!(state.config, :password),
database: Keyword.fetch!(state.config, :database),
port: Keyword.fetch!(state.config, :port),
parameters: Keyword.fetch!(state.config, :parameters)
]

new_config =
state.config
Expand Down

0 comments on commit 98307ae

Please sign in to comment.