We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
unwrap_or_else
1 parent 0c95e50 commit 65cb813Copy full SHA for 65cb813
src/wallet/mod.rs
@@ -245,7 +245,7 @@ where
245
// Use the set fee_rate or default to fee estimation.
246
let confirmation_target = ConfirmationTarget::OnchainPayment;
247
let fee_rate =
248
- fee_rate.unwrap_or(self.fee_estimator.estimate_fee_rate(confirmation_target));
+ fee_rate.unwrap_or_else(|| self.fee_estimator.estimate_fee_rate(confirmation_target));
249
250
let tx = {
251
let mut locked_wallet = self.inner.lock().unwrap();
0 commit comments