From 5096e51d59894b33ca31d2b74de3c7cb0757e9b7 Mon Sep 17 00:00:00 2001 From: qydysky Date: Tue, 22 Sep 2020 14:23:43 +0800 Subject: [PATCH] 66 --- Reqf.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Reqf.go b/Reqf.go index 9c1dac6..5976c93 100644 --- a/Reqf.go +++ b/Reqf.go @@ -35,7 +35,7 @@ type req struct { ResponseCode int Respon []byte UsedTime time.Duration - Cancel chan struct{} + Cancel chan interface{} sync.Mutex } @@ -122,7 +122,7 @@ func (this *req) Reqf_1(val Rval) (error) { req = req.WithContext(cx) go func(){ - this.Cancel = make(chan struct{}) + this.Cancel = make(chan interface{}) <- this.Cancel cancel() }() -- 2.39.2