htlcswitch: use Batch for calls within ackSettleFail
This commit is contained in:
1 file changed
+1
-1
@@ -1251,7 +1251,7 @@ func (s *Switch) closeCircuit(pkt *htlcPacket) (*PaymentCircuit, error) {
|
||||
// we're the originator of the payment, so the link stops attempting to
|
||||
// re-broadcast.
|
||||
func (s *Switch) ackSettleFail(settleFailRef channeldb.SettleFailRef) error {
|
||||
return s.cfg.DB.Update(func(tx *bolt.Tx) error {
|
||||
return s.cfg.DB.Batch(func(tx *bolt.Tx) error {
|
||||
return s.cfg.SwitchPackager.AckSettleFails(tx, settleFailRef)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user