Reuse fasthttp client

This commit is contained in:
2023-10-12 21:16:57 +01:00
parent 815a6841ed
commit bf9ec2c877
5 changed files with 26 additions and 7 deletions
+1
View File
@@ -42,6 +42,7 @@ func parseConfig() {
}
return strings.Split(urls, ",")
}()
c.Client.FastProxyClient = createFasthttpClient()
cfg = &c
enableCache() // takes close to no resources, but can be used with dynamic query cache
loadRatelimitConfig()