mirror of
https://github.com/bestnite/sub2clash.git
synced 2025-06-17 12:43:18 +08:00
refactor
This commit is contained in:
12
common/request.go
Normal file
12
common/request.go
Normal file
@ -0,0 +1,12 @@
|
||||
package common
|
||||
|
||||
import (
|
||||
"resty.dev/v3"
|
||||
)
|
||||
|
||||
func Request(retryTimes int) *resty.Client {
|
||||
client := resty.New()
|
||||
client.
|
||||
SetRetryCount(retryTimes)
|
||||
return client
|
||||
}
|
Reference in New Issue
Block a user