fix: linting errors
This commit is contained in:
parent
47f81f2579
commit
13b318690d
@ -27,7 +27,7 @@ void WebApiPrometheusClass::loop()
|
||||
void WebApiPrometheusClass::onPrometheusMetricsGet(AsyncWebServerRequest* request)
|
||||
{
|
||||
try {
|
||||
auto stream = request->beginResponseStream("text/plain; charset=utf-8", 4096 * INV_MAX_COUNT); // TODO helge: check if this calculation is correct
|
||||
auto stream = request->beginResponseStream("text/plain; charset=utf-8", 4096 * INV_MAX_COUNT); // TODO (helge) check if this calculation is correct
|
||||
|
||||
stream->print("# HELP opendtu_build Build info\n");
|
||||
stream->print("# TYPE opendtu_build gauge\n");
|
||||
|
||||
@ -69,7 +69,7 @@ void WebApiWsLiveClass::loop()
|
||||
String buffer;
|
||||
// free JsonDocument as soon as possible
|
||||
{
|
||||
DynamicJsonDocument root(4096 * INV_MAX_COUNT); // TODO helge: check if this calculation is correct
|
||||
DynamicJsonDocument root(4096 * INV_MAX_COUNT); // TODO (helge) check if this calculation is correct
|
||||
JsonVariant var = root;
|
||||
generateJsonResponse(var);
|
||||
serializeJson(root, buffer);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user