maybe
All checks were successful
Build and Publish / BuildAndDeploy (push) Successful in 1m58s

This commit is contained in:
matst80
2024-11-10 21:43:40 +01:00
parent 0f3b22e8da
commit c70c5cd930
12 changed files with 84 additions and 153 deletions

View File

@@ -10,7 +10,7 @@ import (
)
type PacketWithData struct {
MessageType uint16
MessageType uint32
Added time.Time
Consumed bool
Data []byte
@@ -69,7 +69,7 @@ func NewPacketQueue(connection net.Conn) *PacketQueue {
return queue
}
func (p *PacketQueue) Expect(messageType uint16, timeToWait time.Duration) (*PacketWithData, error) {
func (p *PacketQueue) Expect(messageType uint32, timeToWait time.Duration) (*PacketWithData, error) {
start := time.Now().Add(-time.Millisecond)
for {