perf(cmpp): reserve transport for inbound submit

This commit is contained in:
hectorzhao
2026-08-20 18:23:01 +08:00
parent 6708f1f7c5
commit 229a0b28fd
10 changed files with 61 additions and 9 deletions
+2 -1
View File
@@ -54,7 +54,8 @@ func main() {
if err := (inbound.Server{
Addr: cmppAddr,
APIBaseURL: apiBaseURL,
HTTPClient: inbound.NewAPIHTTPClient(inboundConcurrency),
HTTPClient: inbound.NewAPIHTTPClient(16),
SubmitHTTPClient: inbound.NewAPIHTTPClient(inboundConcurrency),
PresenceStore: presenceStore,
RecoveryStore: recoveryStore,
GatewayInstanceID: getenv("GATEWAY_INSTANCE_ID", hostname()),