boo
This commit is contained in:
@@ -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]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user