Fix bndname in replication

This commit is contained in:
Ivan Vazhenin
2023-11-09 10:41:43 +07:00
parent 5b17bba5bf
commit 36e23465a8
2 changed files with 3 additions and 3 deletions

View File

@@ -70,7 +70,6 @@ def run_tasks():
def replication_task():
while True:
print()
conn = db.connect_db()
with Session(conn) as session:
for bndname in connected:
@@ -241,7 +240,7 @@ def replication(bnd_name: str, commit_id: str, schema: str):
ET.SubElement(res, 'replication', {'id': commit_id, 'scheme': schema})
response_params = {
'from': f'tcp://{Config.self_bnd}',
'to': f'tcp://{Config.remote_bnd}',
'to': f'tcp://{bnd_name}',
'ts_added': date.timestamp(),
'user_id': '0',
'query_type': NEW_REPLICATION_REQUEST,