From d889644f521494aed45e62475641ea43844c95e6 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Sat, 30 Jun 2018 17:15:24 -0500 Subject: [PATCH] htlcswitch: use Batch for calls within ackSettleFail --- htlcswitch/switch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htlcswitch/switch.go b/htlcswitch/switch.go index 12240238..30f4e28f 100644 --- a/htlcswitch/switch.go +++ b/htlcswitch/switch.go @@ -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) }) }