master
bel 2022-08-12 23:50:33 -06:00
parent f71295b40f
commit d810796e32
1 changed files with 0 additions and 2 deletions

View File

@ -3,7 +3,6 @@ package main
import (
"context"
"io"
"time"
"golang.org/x/time/rate"
)
@ -16,7 +15,6 @@ type throttledWriter struct {
func (tw throttledWriter) Write(b []byte) (int, error) {
if tw.limiter != nil {
start := time.Now()
if block := tw.limiter.Burst(); len(b) > block {
b = b[:block]
}