From e0429c02c1d22d9c066d999f9c1982b18db2ea69 Mon Sep 17 00:00:00 2001 From: eson <474420502@qq.com> Date: Sat, 22 Dec 2018 02:23:24 +0800 Subject: [PATCH] fix: test Execute param data type is map[string]interface{} --- task_test.go | 2 +- test.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/task_test.go b/task_test.go index 2f14767..5c05edb 100644 --- a/task_test.go +++ b/task_test.go @@ -22,7 +22,7 @@ type Toutiao struct { Task } -func (tt *Toutiao) Execute(data interface{}) ITask { +func (tt *Toutiao) Execute(data map[string]interface{}) ITask { resp, err := tt.Request() if err != nil { panic(err) diff --git a/test.yaml b/test.yaml index 84e0d6f..85f58d4 100644 --- a/test.yaml +++ b/test.yaml @@ -1,6 +1,6 @@ mode : 0 # proxies : "socks5://10.10.10.1:8080" // 支持, 列表 与 单项字符串 -proxies : ["socks5://10.10.10.1:8080", "socks5://10.10.10.1:8082", "socks5://10.10.10.1:8083", "socks5://10.10.10.1:8085", "socks5://10.10.10.1:8087", "socks5://10.10.10.1:8088", "socks5://10.10.10.1:8089", "socks5://10.10.10.1:8090"] +proxies : [] retry : 0 timeout: 12 priority : 10000