chore: Remove stale metrics timeout TODO

Removes the stale metrics timeout TODO. Go 1.22+ already adjusts pprof write deadlines for the requested profile duration.

Addresses: [#1733](https://github.com/cloudflare/cloudflared/issues/1733)
This commit is contained in:
Hugo Vicente
2026-08-28 14:37:05 +01:00
committed by João "Pisco" Fernandes
parent 0355484d9b
commit 4dd589fedd
-2
View File
@@ -149,8 +149,6 @@ func ServeMetrics(
var wg sync.WaitGroup
// Metrics port is privileged, so no need for further access control
trace.AuthRequest = func(*http.Request) (bool, bool) { return true, true }
// TODO: parameterize ReadTimeout and WriteTimeout. The maximum time we can
// profile CPU usage depends on WriteTimeout
h := newMetricsHandler(config, log)
server := &http.Server{
ReadTimeout: 10 * time.Second,