Improved coding style

This commit is contained in:
Eduard Urbach 2024-01-24 23:06:45 +01:00
parent eb8ff40d7b
commit 1d0521c0bb
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0

View File

@ -18,13 +18,10 @@ func main() {
ticker := time.NewTicker(time.Second)
go func() {
for {
select {
case <-ticker.C:
for range ticker.C {
fmt.Printf("%d packets per second, %d clients\n", server.PacketCount(), game.Clients.Count())
server.ResetPacketCount()
}
}
}()
// Start listening