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
chore: adjust module names to match package name.
  • Loading branch information
Ziinc committed Nov 28, 2023
commit 62990cc89c5996d780a0a79422be5599618f782f
2 changes: 1 addition & 1 deletion lib/cluster/strategy/postgres.ex → lib/strategy.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
defmodule Cluster.Strategy.Postgres do
defmodule LibclusterPostgres.Strategy do
@moduledoc """
A libcluster strategy that uses Postgres LISTEN/NOTIFY to determine the cluster topology.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
defmodule Cluster.Strategy.PostgresTest do
defmodule LibclusterPostgres.StrategyTest do
use ExUnit.Case

alias Postgrex.Notifications
Expand All @@ -17,7 +17,7 @@ defmodule Cluster.Strategy.PostgresTest do
verify_conn_notification = start_supervised!({Notifications, @config})
Notifications.listen(verify_conn_notification, @config[:channel_name])

topologies = [postgres: [strategy: Cluster.Strategy.Postgres, config: @config]]
topologies = [postgres: [strategy: LibclusterPostgres.Strategy, config: @config]]
start_supervised!({Cluster.Supervisor, [topologies]})

channel_name = @config[:channel_name]
Expand Down