Skip to content

Commit c281d1a

Browse files
committed
all: imp code
1 parent 629588a commit c281d1a

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

internal/cmd/proxy.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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.

upstream/doq.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

upstream/dot_internal_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)