From 38448f8d9398cbf4615f9a8434ebd6d7ab8f4320 Mon Sep 17 00:00:00 2001 From: Katharina Willig <katharina.willig@outlook.com> Date: Sat, 25 Jan 2025 17:56:46 +0100 Subject: [PATCH] fix code --- Server_25-01-25.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Server_25-01-25.py b/Server_25-01-25.py index c6b8f24..b6bf9da 100644 --- a/Server_25-01-25.py +++ b/Server_25-01-25.py @@ -334,7 +334,7 @@ def accept(group,erhaltene_uuid,erhaltene_ip): receive_acknowledgement(msg, right_neighbour , election_port) last_heartbeat_time = time.time() -def zuhören_election(): +def listen_election(): """ Listens for incoming election or leader messages on the configured election socket. Decodes the message, sends an acknowledgment to the sender, and processes the message via the accept() function. @@ -569,7 +569,7 @@ if __name__ == "__main__": # Create threads for different server operations thread1 = threading.Thread(target=server_enters) # Handles server entry to the ring thread2 = threading.Thread(target=listen_update_Ring) # Listens for ring updates - thread4 = threading.Thread(target=zuhören_election) # Listens for election messages + thread4 = threading.Thread(target=listen_election) # Listens for election messages thread5 = threading.Thread(target=listen_heartbeat) # Listens for leader heartbeat thread6 = threading.Thread(target=monitor_heartbeat) # Monitord the leader heartbeat # Start all threads -- GitLab