update subscriptions
This commit is contained in:
@@ -58,8 +58,8 @@ func NewPoolServer(pool actor.GrainPool[*cart.CartGrain], pod_name string, klarn
|
||||
inventory.NewInventoryChangeListener(inventoryRedisClient, context.Background(), func(changes []inventory.InventoryChange) {
|
||||
for _, change := range changes {
|
||||
srv.GrainPool.GetPubSub().Publish(actor.Event{
|
||||
Topic: fmt.Sprintf("inventory:%s:%s", change.SKU, change.StockLocationID),
|
||||
Payload: change.Value,
|
||||
Topic: fmt.Sprintf("inventory:%s", change.SKU),
|
||||
Payload: change,
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user