diff --git a/throttle.go b/throttle.go index 306fd5b..c6fc37c 100644 --- a/throttle.go +++ b/throttle.go @@ -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] }