update
This commit is contained in:
@@ -336,6 +336,8 @@ func (c *CartGrain) HandleMessage(message *Message, isReplay bool) (*FrameWithPa
|
||||
}
|
||||
}
|
||||
}
|
||||
if len(items) > 0 {
|
||||
|
||||
c.Deliveries = append(c.Deliveries, &CartDelivery{
|
||||
Id: c.lastDeliveryId,
|
||||
Provider: msg.Provider,
|
||||
@@ -345,11 +347,10 @@ func (c *CartGrain) HandleMessage(message *Message, isReplay bool) (*FrameWithPa
|
||||
c.Processing = true
|
||||
go func() {
|
||||
time.Sleep(5 * time.Second)
|
||||
c.mu.Lock()
|
||||
c.Processing = false
|
||||
c.mu.Unlock()
|
||||
}()
|
||||
}
|
||||
}
|
||||
case RemoveDeliveryType:
|
||||
msg, ok := message.Content.(*messages.RemoveDelivery)
|
||||
if !ok {
|
||||
|
||||
Reference in New Issue
Block a user