wip
This commit is contained in:
parent
8f913eca0d
commit
f6576a9134
5 changed files with 237 additions and 36 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue