From 5de8edced6d9d651980dbf535e43f24c0a66ff40 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 3 Apr 2024 20:30:17 +0200 Subject: [PATCH] output/httpd/HttpdClient: convert `metaint` to a compile-time constant After all these years, we had this as a field but there was never a way to change the value. So let's just hard-code it until we actually have a reason to make it variable at runtime. --- src/output/plugins/httpd/HttpdClient.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/output/plugins/httpd/HttpdClient.hxx b/src/output/plugins/httpd/HttpdClient.hxx index ef863152f..814498a9d 100644 --- a/src/output/plugins/httpd/HttpdClient.hxx +++ b/src/output/plugins/httpd/HttpdClient.hxx @@ -93,7 +93,7 @@ class HttpdClient final /** * The amount of streaming data between each metadata block */ - unsigned metaint = 8192; /*TODO: just a std value */ + static constexpr std::size_t metaint = 8192; /** * The metadata as #Page which is currently being sent to the client.