Skip to content

Commit

Permalink
refactor: remove deprecated and no-op SingleInflight
Browse files Browse the repository at this point in the history
  • Loading branch information
ThinkChaos committed Nov 21, 2023
1 parent f6faa0b commit 69fd160
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions resolver/upstream_resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,21 +80,18 @@ func createUpstreamClient(cfg config.Upstream) upstreamClient {
case config.NetProtocolTcpTls:
return &dnsUpstreamClient{
tcpClient: &dns.Client{
TLSConfig: &tlsConfig,
Net: cfg.Net.String(),
SingleInflight: true,
TLSConfig: &tlsConfig,
Net: cfg.Net.String(),
},
}

case config.NetProtocolTcpUdp:
return &dnsUpstreamClient{
tcpClient: &dns.Client{
Net: "tcp",
SingleInflight: true,
Net: "tcp",
},
udpClient: &dns.Client{
Net: "udp",
SingleInflight: true,
Net: "udp",
},
}

Expand Down

0 comments on commit 69fd160

Please sign in to comment.