Implement review suggestion

This commit is contained in:
Daniel 2021-06-07 14:18:10 +02:00
parent 9624995c6e
commit a2aa20abb7

View file

@ -38,8 +38,8 @@ type TCPResolver struct {
type tcpResolverConn struct {
// ctx is the context of the tcpResolverConn.
ctx context.Context
// cancelCtx cancels cancelCtx
cancelCtx func()
// cancelCtx cancels ctx
cancelCtx context.CancelFunc
// id is the ID assigned to the resolver conn.
id int
// conn is the connection to the DNS server.