derp, net/dns/recursive: use Go 1.21 min

Updates #8419

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick
2023-08-08 21:22:26 -07:00
committed by Brad Fitzpatrick
parent 66f27c4beb
commit be4eb6a39e
2 changed files with 1 additions and 16 deletions

View File

@@ -14,7 +14,6 @@ import (
"time"
"github.com/miekg/dns"
"golang.org/x/exp/constraints"
"golang.org/x/exp/slices"
"tailscale.com/envknob"
"tailscale.com/net/netns"
@@ -484,13 +483,6 @@ func (r *Resolver) resolveRecursive(
return nil, 0, ErrNoResponses
}
func min[T constraints.Ordered](a, b T) T {
if a < b {
return a
}
return b
}
// queryNameserver sends a query for "name" to the nameserver "nameserver" for
// records of type "qtype", trying both UDP and TCP connections as
// appropriate.