Skip to content

Commit c887e97

Browse files
committed
fix: remove js payment timeout
1 parent 2076a20 commit c887e97

File tree

2 files changed

+1
-19
lines changed

2 files changed

+1
-19
lines changed

example/ios/Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,4 +753,4 @@ SPEC CHECKSUMS:
753753

754754
PODFILE CHECKSUM: 940323d07de591a59a2ab39fc0ef7b7d6dc89c0d
755755

756-
COCOAPODS: 1.12.1
756+
COCOAPODS: 1.14.3

lib/src/lightning-manager.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1262,28 +1262,10 @@ class LightningManager {
12621262
}
12631263
};
12641264

1265-
/**
1266-
* ldk.pay helper that subscribes to and returns pay event success/failures and times out after a specified period of time.
1267-
* @param {string} paymentRequest
1268-
* @param {number} [amountSats]
1269-
* @param {number} [timeout]
1270-
* @returns {Promise<Result<TChannelManagerPaymentSent>>}
1271-
*/
12721265
payWithTimeout = async ({
12731266
paymentRequest,
12741267
amountSats,
12751268
timeout = 20000,
1276-
}: TPaymentTimeoutReq): Promise<Result<TChannelManagerPaymentSent>> => {
1277-
return promiseTimeout(
1278-
timeout,
1279-
this.subscribeAndPay({ paymentRequest, amountSats, timeout }),
1280-
);
1281-
};
1282-
1283-
private subscribeAndPay = async ({
1284-
paymentRequest,
1285-
amountSats,
1286-
timeout = 20000,
12871269
}: TPaymentReq): Promise<Result<TChannelManagerPaymentSent>> => {
12881270
return new Promise(async (resolve) => {
12891271
await ldk.writeToLogFile(

0 commit comments

Comments
 (0)