chore(lab5): remove stale templates and refresh source comments

This commit is contained in:
Mikhail Verkovykh
2026-11-20 19:05:23 +03:00
parent fec2882c9a
commit 1ce93185af
49 changed files with 33 additions and 5324 deletions
+3 -3
View File
@@ -101,7 +101,7 @@ func (h *Handler) Upload(c fiber.Ctx) error {
// decoding anything. Chunked requests are caught by the streaming counter
// below.
//
// AGENT: the declared body is drained first, but only within the bounded
// The declared body is drained first, but only within the bounded
// HTTP envelope (upload limit plus the JSON body slack). If the server
// closed immediately, the client would often see a connection reset instead
// of the required 413 while it was still sending. Draining is bounded and
@@ -134,7 +134,7 @@ func (h *Handler) Upload(c fiber.Ctx) error {
_ = os.Remove(filePath)
}()
// AGENT: the 32 KiB copy buffer is the only request-sized allocation here.
// The 32 KiB copy buffer is the only request-sized allocation here.
// The body is never read with io.ReadAll, so ten simultaneous 10 MiB
// uploads do not require ten 10 MiB Go slices.
var reader io.Reader = requestBody(c)
@@ -230,7 +230,7 @@ func (h *Handler) Get(c fiber.Ctx) error {
return err
}
// queued/processing snapshots are part of lab5: the client polls this
// Queued/processing snapshots; the client polls this
// endpoint until status becomes ready or failed.
return c.JSON(attachment)
}