fix: route exit-node requests through batch collector instead of bypassing it

This commit is contained in:
Abolfazl
2026-05-04 08:42:35 +03:30
parent a490813be8
commit a1dffa6a7f
+4 -2
View File
@@ -1231,8 +1231,10 @@ class DomainFronter:
payload.get("u", "")[:60], payload.get("u", "")[:60],
) )
# Send through the normal Apps Script relay path (H2 or H1 + retry) # Send through the batch collector so exit-node requests are coalesced
raw = await self._relay_with_retry(outer) # into fetchAll() alongside other concurrent requests, reducing Apps
# Script quota usage. _relay_with_retry bypasses batching entirely.
raw = await self._batch_submit(outer)
# raw is now the response from the exit node (inner relay JSON) # raw is now the response from the exit node (inner relay JSON)
# _parse_relay_response will decode it into the final HTTP response. # _parse_relay_response will decode it into the final HTTP response.