mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-06-06 09:31:40 +00:00
Remove GOT retries on state poll
The state poll already has retry implementation, making the GOT default unnecessary. Change-type: patch
This commit is contained in:
parent
4746fe7ebb
commit
f3cbeffde1
@ -120,6 +120,7 @@ export const update = async (
|
|||||||
const got = await getGotInstance();
|
const got = await getGotInstance();
|
||||||
|
|
||||||
const { statusCode, headers, body } = await got(endpoint, {
|
const { statusCode, headers, body } = await got(endpoint, {
|
||||||
|
retry: { limit: 0 },
|
||||||
headers: {
|
headers: {
|
||||||
Authorization: `Bearer ${deviceApiKey}`,
|
Authorization: `Bearer ${deviceApiKey}`,
|
||||||
'If-None-Match': cache?.etag,
|
'If-None-Match': cache?.etag,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user