- timer task shceuled to order goroutine to avoid concurrent problem.
This commit is contained in:
@@ -18,7 +18,7 @@ func init() {
|
||||
}
|
||||
|
||||
func (c *WaybillController) OnWaybillMsg(msg *dadaapi.CallbackMsg) (retVal *dadaapi.CallbackResponse) {
|
||||
controller.CallMsgHandler(func() {
|
||||
jxutils.CallMsgHandler(func() {
|
||||
retVal = c.onWaybillMsg(msg)
|
||||
}, msg.OrderID)
|
||||
return retVal
|
||||
|
||||
Reference in New Issue
Block a user