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 { type tcpResolverConn struct {
// ctx is the context of the tcpResolverConn. // ctx is the context of the tcpResolverConn.
ctx context.Context ctx context.Context
// cancelCtx cancels cancelCtx // cancelCtx cancels ctx
cancelCtx func() cancelCtx context.CancelFunc
// id is the ID assigned to the resolver conn. // id is the ID assigned to the resolver conn.
id int id int
// conn is the connection to the DNS server. // conn is the connection to the DNS server.