We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 188aa9a commit 7aba5cbCopy full SHA for 7aba5cb
htlcswitch/switch.go
@@ -2910,7 +2910,8 @@ func (s *Switch) handlePacketAdd(packet *htlcPacket,
2910
// Choose a random link out of the set of links that can forward this
2911
// htlc. The reason for randomization is to evenly distribute the htlc
2912
// load without making assumptions about what the best channel is.
2913
- destination := destinations[rand.Intn(len(destinations))] // nolint:gosec
+ //nolint:gosec
2914
+ destination := destinations[rand.Intn(len(destinations))]
2915
2916
// Retrieve the incoming link by its ShortChannelID. Note that the
2917
// incomingChanID is never set to hop.Source here.
0 commit comments