From 7aba5cbc0aba769bdda183a2d52fb707199bf530 Mon Sep 17 00:00:00 2001 From: yyforyongyu Date: Mon, 22 Jul 2024 21:46:42 +0800 Subject: [PATCH] routing: fix linter complains --- htlcswitch/switch.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htlcswitch/switch.go b/htlcswitch/switch.go index 0cd3d7c3d..efd469f78 100644 --- a/htlcswitch/switch.go +++ b/htlcswitch/switch.go @@ -2910,7 +2910,8 @@ func (s *Switch) handlePacketAdd(packet *htlcPacket, // Choose a random link out of the set of links that can forward this // htlc. The reason for randomization is to evenly distribute the htlc // load without making assumptions about what the best channel is. - destination := destinations[rand.Intn(len(destinations))] // nolint:gosec + //nolint:gosec + destination := destinations[rand.Intn(len(destinations))] // Retrieve the incoming link by its ShortChannelID. Note that the // incomingChanID is never set to hop.Source here.