Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Commit e06a946

Browse files
committed
Don’t do call async since it’s pretty fast
1 parent c5b78d2 commit e06a946

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/action/payment.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@ class PaymentAction {
7070
});
7171
payment.amount = toAmount(parseSat(request.num_satoshis), settings.unit);
7272
payment.note = request.description;
73-
// asynchronously estimate fee to not block the UI
74-
this.estimateLightningFee({
73+
await this.estimateLightningFee({
7574
destination: request.destination,
7675
satAmt: request.num_satoshis,
7776
});

test/integration/action/action-integration.spec.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,6 @@ describe('Action Integration Tests', function() {
349349
invoice: store2.invoice.uri,
350350
});
351351
expect(isValid, 'to be', true);
352-
while (!store1.payment.fee) await nap(100);
353352
expect(
354353
parseFloat(store1.payment.fee),
355354
'to be greater than or equal to',

0 commit comments

Comments
 (0)