Trim retries to 1, 5 takes too long

This commit is contained in:
Graham Christensen 2023-12-04 20:12:12 -05:00
parent c5e19708da
commit e4109712fa
2 changed files with 2 additions and 2 deletions

2
dist/index.js generated vendored
View file

@ -12105,7 +12105,7 @@ var got$1 = got;
const ENV_CACHE_DAEMONDIR = 'MAGIC_NIX_CACHE_DAEMONDIR'; const ENV_CACHE_DAEMONDIR = 'MAGIC_NIX_CACHE_DAEMONDIR';
const gotClient = got$1.extend({ const gotClient = got$1.extend({
retry: { retry: {
limit: 5, limit: 1,
methods: ['POST', 'GET', 'PUT', 'HEAD', 'DELETE', 'OPTIONS', 'TRACE'], methods: ['POST', 'GET', 'PUT', 'HEAD', 'DELETE', 'OPTIONS', 'TRACE'],
}, },
hooks: { hooks: {

View file

@ -17,7 +17,7 @@ const ENV_CACHE_DAEMONDIR = 'MAGIC_NIX_CACHE_DAEMONDIR';
const gotClient = got.extend({ const gotClient = got.extend({
retry: { retry: {
limit: 5, limit: 1,
methods: [ 'POST', 'GET', 'PUT', 'HEAD', 'DELETE', 'OPTIONS', 'TRACE' ], methods: [ 'POST', 'GET', 'PUT', 'HEAD', 'DELETE', 'OPTIONS', 'TRACE' ],
}, },
hooks: { hooks: {