File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -526,8 +526,8 @@ func loadServersList(sources []string) []string {
526526 servers = append (servers , source )
527527 }
528528
529- lines := strings . SplitSeq ( string ( data ), " \n " )
530- for line := range lines {
529+ // TODO(a.garipov): Be smarter about bytes vs. strings.
530+ for line := range strings . SplitSeq ( string ( data ), " \n " ) {
531531 line = strings .TrimSpace (line )
532532
533533 // Ignore comments in the file.
Original file line number Diff line number Diff line change @@ -285,7 +285,7 @@ func (p *dnsOverQUIC) getBytesPool() (pool *sync.Pool) {
285285
286286 if p .bytesPool == nil {
287287 p .bytesPool = & sync.Pool {
288- New : func () any {
288+ New : func () ( res any ) {
289289 b := make ([]byte , dns .MaxMsgSize )
290290
291291 return & b
Original file line number Diff line number Diff line change @@ -67,7 +67,6 @@ func TestUpstream_dnsOverTLS_race(t *testing.T) {
6767 wg := sync.WaitGroup {}
6868 for range count {
6969 wg .Go (func () {
70-
7170 pt := testutil.PanicT {}
7271
7372 req := createTestMessage ()
You can’t perform that action at this time.
0 commit comments