wallet-core: request reserve status with long poll timeout
This commit is contained in:
parent
a2e8ab9445
commit
098d1eb7eb
@ -539,8 +539,11 @@ async function updateReserve(
|
||||
return { ready: true };
|
||||
}
|
||||
|
||||
const reserveUrl = new URL(`reserves/${reservePub}`, reserve.exchangeBaseUrl);
|
||||
reserveUrl.searchParams.set("timeout_ms", "200");
|
||||
|
||||
const resp = await ws.http.get(
|
||||
new URL(`reserves/${reservePub}`, reserve.exchangeBaseUrl).href,
|
||||
reserveUrl.href,
|
||||
{
|
||||
timeout: getReserveRequestTimeout(reserve),
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user