cmd: apply go fix

Updates #cleanup

Signed-off-by: Adriano Sela Aviles <adriano@tailscale.com>
This commit is contained in:
Adriano Sela Aviles
2026-07-10 14:26:11 -07:00
committed by Adriano Sela Aviles
parent 2b62cb54a7
commit 66a51c426f
7 changed files with 12 additions and 23 deletions
+1 -4
View File
@@ -548,10 +548,7 @@ type slowReader struct {
func (r *slowReader) Read(p []byte) (n int, err error) {
const burst = 4 << 10
plen := len(p)
if plen > burst {
plen = burst
}
plen := min(len(p), burst)
if r.rl == nil {
r.rl = rate.NewLimiter(rate.Limit(1<<10), burst)
}