|
|
@@ -362,14 +362,11 @@ func hostStatusLoop() {
|
|
|
for {
|
|
|
select {
|
|
|
case <-ticker.C:
|
|
|
- config.Logger.Info("host bstate updating")
|
|
|
update := constructSystemInfo()
|
|
|
err := UpdateBroadcastState(update)
|
|
|
if err != nil {
|
|
|
config.Logger.Warn(fmt.Sprintf("Error updating system status: %v", err))
|
|
|
}
|
|
|
-
|
|
|
- config.Logger.Info("host bstate updated")
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -381,7 +378,6 @@ func shipStatusLoop() {
|
|
|
for {
|
|
|
select {
|
|
|
case <-ticker.C:
|
|
|
- config.Logger.Info("ship bstate updating")
|
|
|
conf := config.Conf()
|
|
|
piers := conf.Piers
|
|
|
updates, err := constructPierInfo(piers)
|
|
|
@@ -396,7 +392,6 @@ func shipStatusLoop() {
|
|
|
}
|
|
|
mu.Unlock() // Unlocking the mutex
|
|
|
BroadcastToClients()
|
|
|
- config.Logger.Info("ship bstate updated")
|
|
|
}
|
|
|
}
|
|
|
}
|