ax(mining): replace prose comment on wsUpgrader with usage example
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run

AX Principle 2 — comments must show HOW (concrete call), not describe WHAT.
The wsUpgrader var comment restated the variable's purpose in prose; replaced
with a usage example showing the Upgrade call site.

Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
Claude 2026-04-02 17:33:04 +01:00
parent 5afb9e98f7
commit 0c2802a882
No known key found for this signature in database
GPG key ID: AF404715446AEB41

View file

@ -373,7 +373,7 @@ func requestTimeoutMiddleware(timeout time.Duration) gin.HandlerFunc {
}
}
// WebSocket upgrader for the events endpoint
// conn, err := wsUpgrader.Upgrade(c.Writer, c.Request, nil) // upgrade HTTP to WebSocket
var wsUpgrader = websocket.Upgrader{
ReadBufferSize: 1024,
WriteBufferSize: 1024,