Skip to content

Commit

Permalink
Fix passing as function
Browse files Browse the repository at this point in the history
  • Loading branch information
msfstef committed Dec 12, 2024
1 parent 985ed08 commit 64e03e1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ defmodule Electric.Postgres.Configuration do
@doc """
Get Postgres server version
"""
@spec get_pg_version(Postgrex.conn()) :: integer
@spec get_pg_version(Postgrex.conn()) :: non_neg_integer()
def get_pg_version(conn) do
case Postgrex.query(
conn,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ defmodule Electric.Replication.PublicationManager do
Configuration.configure_tables_for_replication!(
db_pool,
Map.values(relation_filters),
fn -> pg_version end,
pg_version,
publication_name
)

Expand Down
3 changes: 1 addition & 2 deletions packages/sync-service/test/support/component_setup.ex
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ defmodule Support.ComponentSetup do
name: server,
stack_id: ctx.stack_id,
publication_name: ctx.publication_name,
db_pool: ctx.pool,
pg_version: Application.fetch_env!(:electric, :pg_version_for_tests)
db_pool: ctx.pool
)

%{
Expand Down

0 comments on commit 64e03e1

Please sign in to comment.