From: qydysky Date: Tue, 22 Sep 2020 06:23:43 +0000 (+0800) Subject: 66 X-Git-Tag: v0.0.2~7 X-Git-Url: http://127.0.0.1:8081/?a=commitdiff_plain;h=5096e51d59894b33ca31d2b74de3c7cb0757e9b7;p=part%2F.git 66 --- 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() }()