Fix formatting in fetcher and signature tests

This commit is contained in:
2026-01-08 03:36:00 -08:00
parent 30c5c077e5
commit 6d32b7ee23
2 changed files with 33 additions and 33 deletions

View File

@@ -13,12 +13,12 @@ import (
// Fetcher configuration constants.
const (
DefaultFetchTimeout = 30 * time.Second
DefaultMaxResponseSize = 50 << 20 // 50MB
DefaultTLSTimeout = 10 * time.Second
DefaultMaxIdleConns = 100
DefaultIdleConnTimeout = 90 * time.Second
DefaultMaxRedirects = 10
DefaultFetchTimeout = 30 * time.Second
DefaultMaxResponseSize = 50 << 20 // 50MB
DefaultTLSTimeout = 10 * time.Second
DefaultMaxIdleConns = 100
DefaultIdleConnTimeout = 90 * time.Second
DefaultMaxRedirects = 10
)
// Fetcher errors.
@@ -148,7 +148,7 @@ func (f *HTTPFetcher) Fetch(ctx context.Context, url string) (*FetchResult, erro
// Wrap body with size limiter
limitedBody := &limitedReader{
reader: resp.Body,
reader: resp.Body,
remaining: f.config.MaxResponseSize,
}