node update sync wip

This commit is contained in:
partisan 2024-06-30 23:20:52 +02:00
parent 30aa3d0238
commit 8f913eca0d
5 changed files with 189 additions and 45 deletions

View file

@ -140,9 +140,12 @@ func runServer() {
config := loadConfig()
generateOpenSearchXML(config)
fmt.Printf("Server is listening on http://localhost:%d\n", config.Port)
log.Fatal(http.ListenAndServe(fmt.Sprintf(":%d", config.Port), nil))
// Start node communication client
go startNodeClient(peers)
fmt.Printf("Server is listening on http://localhost:%d\n", config.Port)
log.Fatal(http.ListenAndServe(fmt.Sprintf(":%d", config.Port), nil))
// Start automatic update checker
go checkForUpdates()
}