wallet-core: fix long-polling check
This commit is contained in:
parent
e06795debd
commit
265d88b6b7
@ -365,6 +365,7 @@ async function processPeerPushDebitReady(
|
||||
peerPushInitiation.exchangeBaseUrl,
|
||||
);
|
||||
mergeUrl.searchParams.set("timeout_ms", "30000");
|
||||
logger.info(`long-polling on purse status at ${mergeUrl.href}`);
|
||||
const resp = await ws.http.fetch(mergeUrl.href, {
|
||||
// timeout: getReserveRequestTimeout(withdrawalGroup),
|
||||
cancellationToken: ct,
|
||||
@ -374,7 +375,8 @@ async function processPeerPushDebitReady(
|
||||
resp,
|
||||
codecForExchangePurseStatus(),
|
||||
);
|
||||
if (purseStatus.deposit_timestamp) {
|
||||
logger.info(`got purse status ${purseStatus}`);
|
||||
if (purseStatus.merge_timestamp) {
|
||||
await transitionPeerPushDebitTransaction(
|
||||
ws,
|
||||
peerPushInitiation.pursePub,
|
||||
|
Loading…
Reference in New Issue
Block a user