htlcswitch: use Batch for calls within ackSettleFail
This commit is contained in:
parent
3ad15c5f42
commit
d889644f52
@ -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)
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user