From a2aa20abb7b0420ba0065a7730c4500a52ab697f Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 7 Jun 2021 14:18:10 +0200 Subject: [PATCH] Implement review suggestion --- resolver/resolver-tcp.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resolver/resolver-tcp.go b/resolver/resolver-tcp.go index 057fd034..c9062ebf 100644 --- a/resolver/resolver-tcp.go +++ b/resolver/resolver-tcp.go @@ -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.