Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Support socket options
  • Loading branch information
pulkit110 committed Jan 31, 2024
commit 7d9f313e287fcc54677722b53dc7d3d834ec17ad
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ config :libcluster,
ssl: true,
# optional, please refer to the Postgrex docs
ssl_opts: nil,
# optional, please refer to the Postgrex docs
socket_options: nil,
# optional, defaults to node cookie
channel_name: "cluster"
],
Expand Down
1 change: 1 addition & 0 deletions lib/strategy.ex
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ defmodule LibclusterPostgres.Strategy do
port: Keyword.fetch!(state.config, :port),
ssl: Keyword.get(state.config, :ssl),
ssl_opts: Keyword.get(state.config, :ssl_opts),
socket_options: Keyword.get(state.config, :socket_options, []),
parameters: Keyword.fetch!(state.config, :parameters),
channel_name: channel_name
]
Expand Down