less waiting
All checks were successful
Build and Publish / BuildAndDeploy (push) Successful in 1m57s
All checks were successful
Build and Publish / BuildAndDeploy (push) Successful in 1m57s
This commit is contained in:
@@ -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")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user