This commit is contained in:
matst80
2024-11-08 08:37:12 +01:00
parent ae421674d2
commit 4cc41bcec6
9 changed files with 568 additions and 44 deletions

View File

@@ -7,6 +7,8 @@ import (
"net/http"
"os"
"time"
"git.tornberg.me/go-cart-actor/git.tornberg.me/go-cart-actor/messages"
)
func spawn(id string) Grain {
@@ -56,8 +58,8 @@ func (a *App) HandleAddSku(w http.ResponseWriter, r *http.Request) {
return
}
message := &Message{
Type: "add",
Content: sku,
Type: 1,
Content: &messages.AddRequest{Sku: sku},
}
var reply CartGrain
err = grain.HandleMessage(message, false, &reply)