mirror of
https://github.com/OpenListTeam/OpenList.git
synced 2025-09-20 12:46:17 +08:00
✨ close #535 request set timeout
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user