File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ type readOnlyConn struct {
211
211
212
212
func (conn readOnlyConn ) Read (p []byte ) (int , error ) { return conn .reader .Read (p ) }
213
213
func (conn readOnlyConn ) Write (p []byte ) (int , error ) { return 0 , io .ErrClosedPipe }
214
- func (conn readOnlyConn ) Close () error { return nil }
214
+ func (conn readOnlyConn ) Close () error { return conn . Close () }
215
215
func (conn readOnlyConn ) LocalAddr () net.Addr { return nil }
216
216
func (conn readOnlyConn ) RemoteAddr () net.Addr { return nil }
217
217
func (conn readOnlyConn ) SetDeadline (t time.Time ) error { return nil }
@@ -322,7 +322,7 @@ func main() {
322
322
var wg sync.WaitGroup
323
323
wg .Add (3 )
324
324
325
- limiter := rate .NewLimiter (100 , 500 ) // 1 request per second with a burst size of 5
325
+ limiter := rate .NewLimiter (10 , 50 ) // 1 request per second with a burst size of 5
326
326
327
327
go func () {
328
328
runDOHServer (limiter )
You can’t perform that action at this time.
0 commit comments