Skip to content

Commit

Permalink
noise: fix variable names
Browse files Browse the repository at this point in the history
Co-authored-by: Marco Munizaga <[email protected]>
  • Loading branch information
marten-seemann and MarcoPolo authored Nov 16, 2022
1 parent 11ae27f commit f9d777a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions p2p/security/noise/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ func (t *Transport) ID() protocol.ID {
}

func matchMuxers(initiatorMuxers, responderMuxers []string) string {
for _, muxer := range initiatorMuxers {
for _, initMuxer := range responderMuxers {
if initMuxer == muxer {
return muxer
for _, initMuxer := range initiatorMuxers {
for _, respMuxer := range responderMuxers {
if initMuxer == respMuxer {
return initMuxer
}
}
}
Expand Down

0 comments on commit f9d777a

Please sign in to comment.