mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
@@ -102,7 +102,7 @@ func NewRedisPool() *redis.Pool {
|
||||
return redis.DialURL(url,
|
||||
redis.DialConnectTimeout(time.Second*10),
|
||||
redis.DialReadTimeout(time.Second*10),
|
||||
redis.DialWriteTimeout(time.Second*10),
|
||||
redis.DialWriteTimeout(time.Second*15),
|
||||
)
|
||||
},
|
||||
TestOnBorrow: func(c redis.Conn, t time.Time) error {
|
||||
|
||||
@@ -36,7 +36,7 @@ func GetTaskList(c *gin.Context) {
|
||||
data.PageNum = 1
|
||||
}
|
||||
if data.PageSize == 0 {
|
||||
data.PageNum = 10
|
||||
data.PageSize = 10
|
||||
}
|
||||
|
||||
// 过滤条件
|
||||
|
||||
Reference in New Issue
Block a user