]> 127.0.0.1 Git - part/.git/commitdiff
66
authorqydysky <qydysky@foxmail.com>
Tue, 22 Sep 2020 06:23:43 +0000 (14:23 +0800)
committerqydysky <qydysky@foxmail.com>
Tue, 22 Sep 2020 06:23:43 +0000 (14:23 +0800)
Reqf.go

diff --git a/Reqf.go b/Reqf.go
index 9c1dac62ebcb81c946b91d5cca6f81be96093314..5976c9324df2b6acd58ec79e9ef3b518a23d4b3d 100644 (file)
--- 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()
     }()