From 2800f0f6f161674bcfffe23c1095142356f2d84e Mon Sep 17 00:00:00 2001 From: Merlin Ran Date: Fri, 13 Aug 2021 18:01:50 -0400 Subject: [PATCH] adjust the defaults to be more conservative Signed-off-by: Merlin Ran --- main.go | 2 +- service/store/store.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 0dcc438..5e26e54 100644 --- a/main.go +++ b/main.go @@ -127,7 +127,7 @@ func init() { }, { Name: "est-download-speed", - DefValue: "5MB", + DefValue: "1MB", Description: `The estimated download speed per second, to govern the timeouts downloading CAR files. Be conservative to leave enough room for network instability.`, }, diff --git a/service/store/store.go b/service/store/store.go index 9e33045..0e8dc5b 100644 --- a/service/store/store.go +++ b/service/store/store.go @@ -49,7 +49,7 @@ var ( DefaultDataURIFetchTimeout = time.Hour * 10 // MaxDataURIFetchConcurrency is the maximum number of data uri fetches that will be handled concurrently. - MaxDataURIFetchConcurrency = 10 + MaxDataURIFetchConcurrency = 3 // ErrBidNotFound indicates the requested bid was not found. ErrBidNotFound = errors.New("bid not found")