more features
All checks were successful
Build and Publish / BuildAndDeploy (push) Successful in 1m52s

This commit is contained in:
matst80
2024-11-11 09:47:13 +01:00
parent 46d9f1dd96
commit 8027402b7c
11 changed files with 730 additions and 106 deletions

View File

@@ -55,7 +55,7 @@ func NewPacketQueue(connection net.Conn) *PacketQueue {
l = append(l, packet)
}
}
packetQueue.Set(float64(len(queue.Packets)))
queue.Packets = append(l, PacketWithData{
MessageType: packet.MessageType,
Added: ts,
@@ -63,7 +63,6 @@ func NewPacketQueue(connection net.Conn) *PacketQueue {
})
queue.mu.Unlock()
packetsReceived.Inc()
packetQueue.Set(float64(len(queue.Packets)))
}
}()
return queue