less waiting
All checks were successful
Build and Publish / BuildAndDeploy (push) Successful in 1m57s

This commit is contained in:
matst80
2024-11-11 21:43:31 +01:00
parent 7abe075ed9
commit 335ede07f8
2 changed files with 2 additions and 2 deletions

View File

@@ -100,7 +100,7 @@ func (m *CartTCPClient) Call(messageType uint32, id CartId, responseType uint32,
select { select {
case ret := <-packetChan: case ret := <-packetChan:
return ret, nil return ret, nil
case <-time.After(3 * time.Second): case <-time.After(time.Second):
return nil, fmt.Errorf("timeout") return nil, fmt.Errorf("timeout")
} }
} }

View File

@@ -104,7 +104,7 @@ func (m *TCPClient) Call(messageType uint32, responseType uint32, data []byte) (
select { select {
case ret := <-packetChan: case ret := <-packetChan:
return ret, nil return ret, nil
case <-time.After(3 * time.Second): case <-time.After(time.Second):
return nil, fmt.Errorf("timeout") return nil, fmt.Errorf("timeout")
} }
} }