This commit is contained in:
partisan 2024-07-05 03:08:35 +02:00
parent 8f913eca0d
commit f6576a9134
5 changed files with 237 additions and 36 deletions

View file

@ -11,7 +11,7 @@ func nodeUpdateSync() {
fmt.Println("Syncing updates across all nodes...")
for _, peer := range peers {
fmt.Printf("Notifying node %s about update...\n", peer)
err := sendMessage(peer, connCode, "update", "Start update process")
err := sendMessage(peer, authCode, "update", "Start update process")
if err != nil {
log.Printf("Failed to notify node %s: %v\n", peer, err)
continue