use correct packages
All checks were successful
Build and Publish / BuildAndDeploy (push) Successful in 1m51s

This commit is contained in:
matst80
2024-11-10 21:58:43 +01:00
parent c70c5cd930
commit ab0e708d00
5 changed files with 65 additions and 11 deletions

View File

@@ -31,7 +31,7 @@ type CartTCPClient struct {
Errors chan error
ErrorCount int
address string
*PacketQueue
*CartPacketQueue
}
func NewCartTCPClient(address string) (*CartTCPClient, error) {
@@ -40,11 +40,11 @@ func NewCartTCPClient(address string) (*CartTCPClient, error) {
return nil, err
}
return &CartTCPClient{
Errors: make(chan error),
ErrorCount: 0,
Conn: connection,
address: address,
PacketQueue: NewPacketQueue(connection),
Errors: make(chan error),
ErrorCount: 0,
Conn: connection,
address: address,
CartPacketQueue: NewCartPacketQueue(connection),
}, nil
}
@@ -95,7 +95,7 @@ func (m *CartTCPClient) Call(messageType uint32, id CartId, responseType uint32,
if err != nil {
return nil, err
}
packet, err := m.Expect(responseType, time.Second)
packet, err := m.Expect(responseType, id, time.Second)
if err != nil {
return nil, err
}