Fix typs and add extra clarifications for segment and the http server.

This commit is contained in:
Mariano Uvalle 2021-08-05 16:26:54 -05:00
parent 60f6040fe3
commit 4553be4b6d
2 changed files with 3 additions and 2 deletions

View file

@ -67,7 +67,7 @@ func (s *httpServer) handleProduce(w http.ResponseWriter, r *http.Request) {
}
res := ProduceResponse{Offset: off}
// The header gets overrided if there's an encoding error.
// The header gets overwritten if there's an encoding error.
w.WriteHeader(http.StatusCreated)
err = json.NewEncoder(w).Encode(res)
if err != nil {