testing locks
All checks were successful
Build and Publish / BuildAndDeployAmd64 (push) Successful in 27s
Build and Publish / BuildAndDeploy (push) Successful in 2m21s

This commit is contained in:
matst80
2024-11-13 09:52:47 +01:00
parent e1470c02b6
commit d481bcdc77
2 changed files with 20 additions and 5 deletions

View File

@@ -2,6 +2,7 @@ package main
import (
"encoding/json"
"log"
"net/http"
"strconv"
@@ -22,6 +23,7 @@ func NewPoolServer(pool GrainPool, pod_name string) *PoolServer {
func (s *PoolServer) HandleGet(w http.ResponseWriter, r *http.Request) error {
id := r.PathValue("id")
log.Printf("Getting cart %s\n", id)
data, err := s.pool.Get(ToCartId(id))
if err != nil {
return err