Implement review suggestion
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user