Commit f56b8fe
authored
[r3.5] node/components/downloader: always register torrent client status on default mux (#21822)
Same fix as #21821, for release/3.5.
The torrent client status endpoint (`/downloader/torrentClientStatus`)
became unreachable via `GOPPROF=http` when `--metrics`/`--pprof` are
off, after #20471 wrapped the registration call in `if p.debugMux !=
nil`. `HandleTorrentClientStatus` registers on `http.DefaultServeMux`
unconditionally and nil-guards `debugMux` internally, so the guard only
dropped the default-mux path. Call it unconditionally to restore
documented behavior.1 parent 4dfe2ea commit f56b8fe
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
129 | | - | |
130 | | - | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
131 | 133 | | |
132 | 134 | | |
133 | 135 | | |
| |||
0 commit comments