Skip to content

Commit

Permalink
Remove Close
Browse files Browse the repository at this point in the history
  • Loading branch information
fortuna committed Oct 30, 2024
1 parent a716c1f commit b3fec8a
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions x/configurl/dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import (
"context"
"errors"
"fmt"
"io"
"net"
"net/url"
"strings"
Expand All @@ -37,16 +36,10 @@ func registerDO53StreamDialer(r TypeRegistry[transport.StreamDialer], typeID str
if err != nil {
return nil, err
}
if closer, ok := sd.(io.Closer); ok {
defer closer.Close()
}
pd, err := newPD(ctx, config.BaseConfig)
if err != nil {
return nil, err
}
if closer, ok := pd.(io.Closer); ok {
defer closer.Close()
}
resolver, err := newDO53Resolver(config.URL, sd, pd)
if err != nil {
return nil, err
Expand Down

0 comments on commit b3fec8a

Please sign in to comment.