From 27acbf87ac1fb1cadcf428e3d3139e3d375382f8 Mon Sep 17 00:00:00 2001 From: Suzanne Soy Date: Mon, 20 Nov 2023 18:15:14 +0000 Subject: [PATCH] Adjusted order of cache warming and number of retries/timeout --- .github/pin-using-ipfs.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/pin-using-ipfs.sh b/.github/pin-using-ipfs.sh index 0cf0c57..1b37c51 100755 --- a/.github/pin-using-ipfs.sh +++ b/.github/pin-using-ipfs.sh @@ -61,12 +61,12 @@ for i in `seq 2`; do | cut -d ' ' -f 3- \ | sed -e 's~^www/*~~' \ | while read f; do + printf "Warming up pinata cache for %s (attempt %d)...\n" "$f" "$i" + wget --tries=1 --timeout=10 -O- "https://gateway.pinata.cloud/ipfs/$h/$f" > /dev/null || true printf "Warming up Cloudflare cache for %s (attempt %d)...\n" "$f" "$i" - wget -O- "https://cloudflare-ipfs.com/ipfs/$h/$f" > /dev/null || true + wget --tries=1 --timeout=10 -O- "https://cloudflare-ipfs.com/ipfs/$h/$f" > /dev/null || true printf "Warming up dweb.link cache for %s (attempt %d)...\n" "$f" "$i" - wget -O- "https://$h.ipfs.dweb.link/$f" > /dev/null || true - printf "Warming up pinata cache for %s (attempt %d)...\n" "$f" "$i" - wget -O- "https://gateway.pinata.cloud/ipfs/$h/$f" > /dev/null || true + wget --tries=1 --timeout=10 -O- "https://$h.ipfs.dweb.link/$f" > /dev/null || true done done