Optimize Gitreq

This commit is contained in:
WJQSERVER 2025-01-25 12:26:48 +08:00
parent 112c0e3320
commit 073be0c4d6
3 changed files with 32 additions and 14 deletions

View file

@ -91,8 +91,8 @@ func setupRateLimit(cfg *config.Config) {
}
}
func InitChunkedReq() {
proxy.InitChunkedReq(cfg.Server.BufferSize)
func InitReq() {
proxy.InitReq(cfg.Server.BufferSize)
}
func init() {
@ -100,7 +100,7 @@ func init() {
flag.Parse()
loadConfig()
setupLogger(cfg)
InitChunkedReq()
InitReq()
loadlist(cfg)
setupRateLimit(cfg)