mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-29 02:13:06 +02:00
htlcswitch: remove unused function in switch
This commit is contained in:
@@ -671,7 +671,8 @@ func (f *mockChannelLink) completeCircuit(pkt *htlcPacket) error {
|
||||
htlc.ID = f.htlcID
|
||||
|
||||
keystone := Keystone{pkt.inKey(), pkt.outKey()}
|
||||
if err := f.htlcSwitch.openCircuits(keystone); err != nil {
|
||||
err := f.htlcSwitch.circuits.OpenCircuits(keystone)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
@@ -690,7 +691,7 @@ func (f *mockChannelLink) completeCircuit(pkt *htlcPacket) error {
|
||||
}
|
||||
|
||||
func (f *mockChannelLink) deleteCircuit(pkt *htlcPacket) error {
|
||||
return f.htlcSwitch.deleteCircuits(pkt.inKey())
|
||||
return f.htlcSwitch.circuits.DeleteCircuits(pkt.inKey())
|
||||
}
|
||||
|
||||
func newMockChannelLink(htlcSwitch *Switch, chanID lnwire.ChannelID,
|
||||
|
Reference in New Issue
Block a user