Code Room
Code reviewHard
Question
Review this Go gRPC call inside an HTTP request handler.
What a strong answer looks like
Separate real bugs from style. Rank issues by severity, point at the root cause rather than the symptom, and suggest a concrete fix — specific and kind.
Learn the concepts
func handler(w http.ResponseWriter, r *http.Request) { res, err := inventoryClient.Reserve(context.Background(), &pb.ReserveReq{Sku: r.FormValue("sku")}) if err != nil { http.Error(w, err.Error(), 500) return } fmt.Fprint(w, res.Token)}Run or narrate your approach, then ask the coach.