Browse Source

experimenting with recursive update

reid 2 năm trước cách đây
mục cha
commit
6b4e8723ff
1 tập tin đã thay đổi với 0 bổ sung5 xóa
  1. 0 5
      broadcast/broadcast.go

+ 0 - 5
broadcast/broadcast.go

@@ -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")
 		}
 	}
 }