Skip to content

Commit d5f476e

Browse files
fixing lint errors
1 parent 6bae6ea commit d5f476e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sources/pg_replication_pipeline.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
PG_CREDS = dlt.secrets.get("sources.pg_replication.credentials", PostgresCredentials)
1111

12-
def replicate_with_initial_load(pipeline_name, slot_name, pub_name) -> None:
12+
def replicate_with_initial_load(pipeline_name: str, slot_name: str, pub_name: str) -> None:
1313
"""Production example: Sets up replication with initial load.
1414
1515
Demonstrates usage of `persist_snapshots` argument and snapshot resource
@@ -40,7 +40,7 @@ def replicate_with_initial_load(pipeline_name, slot_name, pub_name) -> None:
4040
dest_pl.run(snapshot)
4141
print("replication run")
4242
# insert record in source table and propagate change to destination
43-
changes = replication_resource(slot_name, pub_name, cridentials=creds)
43+
changes = replication_resource(slot_name, pub_name, credentials=creds)
4444
print("changes initialized")
4545
dest_pl.run(changes)
4646
print("changes run")

0 commit comments

Comments
 (0)