ax(mining): replace prose comment with usage examples in error code block
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run

AX Principle 2: comments show HOW with real values, not WHAT the block contains.

Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
Claude 2026-04-02 17:39:58 +01:00
parent 21c815b494
commit 852db44e4e
No known key found for this signature in database
GPG key ID: AF404715446AEB41

View file

@ -4,7 +4,8 @@ import (
"net/http"
)
// Error codes for the mining package
// respondWithError(c, http.StatusNotFound, ErrCodeMinerNotFound, "xmrig not found", err.Error())
// respondWithError(c, http.StatusConflict, ErrCodeMinerExists, "xmrig already running", "")
const (
ErrCodeMinerNotFound = "MINER_NOT_FOUND"
ErrCodeMinerExists = "MINER_EXISTS"