)
const (
- gatewayRequestTimeout = 5 * time.Second
- gatewayResponseLimit = 64 * 1024
+ httpRequestTimeout = 5 * time.Second
+ gatewayResponseLimit = 64 * 1024
)
// HTTPClient exchanges bounded GET requests with one HTTP gateway origin. Each
}
func (c *HTTPClient) exchange(ctx context.Context, path string, query url.Values) (states []State, err error) {
- ctx, cancel := context.WithTimeout(ctx, gatewayRequestTimeout)
+ ctx, cancel := context.WithTimeout(ctx, httpRequestTimeout)
defer cancel()
address := c.origin + path