multi: fix newly detected linter issues

This commit is contained in:
Oliver Gugger committed 2022-02-10 11:02:02 +01:00
1 parent 369627901f
commit ffee7d1bcf
30 files changed
+106 -118

No files matched your search

+1 -1
View File
@@ -1130,7 +1130,7 @@ func (s *Switch) handlePacketForward(packet *htlcPacket) error {
// 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))]
destination := destinations[rand.Intn(len(destinations))] // nolint:gosec
// Retrieve the incoming link by its ShortChannelID. Note that
// the incomingChanID is never set to hop.Source here.