Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -26,7 +26,8 @@ func GetProductPricingListHandler(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
log.Printf("[ProductPricing] trace=%s start user=%s id=%d", traceID, claims.Username, claims.ID)
|
||||
|
||||
ctx, cancel := context.WithTimeout(r.Context(), 180*time.Second)
|
||||
// Cloudflare upstream timeout is lower than 180s; fail fast and return API 504 instead of CDN 524.
|
||||
ctx, cancel := context.WithTimeout(r.Context(), 110*time.Second)
|
||||
defer cancel()
|
||||
|
||||
limit := 500
|
||||
|
||||
Reference in New Issue
Block a user