mirror of
https://codeberg.org/VnPower/PixivFE
synced 2024-12-06 19:16:23 +01:00
c4d8fdb0f0
add http client with better maxidleconnections
10 lines
127 B
Go
10 lines
127 B
Go
package utils
|
|
|
|
import "net/http"
|
|
|
|
var HttpClient = &http.Client{
|
|
Transport: &http.Transport{
|
|
MaxIdleConnsPerHost: 20,
|
|
},
|
|
}
|