From c5f17180bc1413988c99267cb2f395e8936a2e48 Mon Sep 17 00:00:00 2001 From: yyforyongyu Date: Thu, 18 Jul 2024 09:37:06 +0800 Subject: [PATCH] netann: remove unused param in `newMockGraph` --- netann/chan_status_manager_test.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/netann/chan_status_manager_test.go b/netann/chan_status_manager_test.go index 320981d63..024b77932 100644 --- a/netann/chan_status_manager_test.go +++ b/netann/chan_status_manager_test.go @@ -130,8 +130,8 @@ type mockGraph struct { updates chan *lnwire.ChannelUpdate1 } -func newMockGraph(t *testing.T, numChannels int, - startActive, startEnabled bool, pubKey *btcec.PublicKey) *mockGraph { +func newMockGraph(t *testing.T, numChannels int, startEnabled bool, + pubKey *btcec.PublicKey) *mockGraph { g := &mockGraph{ channels: make([]*channeldb.OpenChannel, 0, numChannels), @@ -320,9 +320,7 @@ func newManagerCfg(t *testing.T, numChannels int, require.NoError(t, err, "unable to generate key pair") privKeySigner := keychain.NewPrivKeyMessageSigner(privKey, testKeyLoc) - graph := newMockGraph( - t, numChannels, startEnabled, startEnabled, privKey.PubKey(), - ) + graph := newMockGraph(t, numChannels, startEnabled, privKey.PubKey()) htlcSwitch := newMockSwitch() cfg := &netann.ChanStatusConfig{