protobuf
This commit is contained in:
6
main.go
6
main.go
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user