close #535 request set timeout

This commit is contained in:
Xhofe
2022-02-14 14:59:00 +08:00
parent fb05a6ca48
commit e90b979d15
5 changed files with 14 additions and 15 deletions

View File

@ -67,7 +67,7 @@ var client *resty.Client
func init() {
client = resty.New()
client.SetRetryCount(3)
client.SetRetryCount(3).SetTimeout(base.DefaultTimeout)
}
func Text(c *gin.Context, link *base.Link) {