Quality Fixup
continuous-integration/drone/pr Build is failing Details

This commit is contained in:
Sarah Jamie Lewis 2023-08-28 13:23:25 -07:00
parent 0997406e51
commit ca63205934
1 changed files with 6 additions and 6 deletions

View File

@ -232,14 +232,14 @@ func (cr *contactRetry) run() {
state := connections.ConnectionStateToType()[e.Data[event.ConnectionState]]
peer := e.Data[event.RemotePeer]
// only handle state change events from pre-authorized peers;
if _,exists := cr.authorizedPeers.Load(peer); exists {
if _, exists := cr.authorizedPeers.Load(peer); exists {
cr.handleEvent(peer, state, peerConn)
}
case event.ServerStateChange:
state := connections.ConnectionStateToType()[e.Data[event.ConnectionState]]
server := e.Data[event.GroupServer]
// only handle state change events from pre-authorized servers;
if _,exists := cr.authorizedPeers.Load(server); exists {
if _, exists := cr.authorizedPeers.Load(server); exists {
cr.handleEvent(server, state, serverConn)
}
case event.QueueJoinServer:
@ -432,7 +432,7 @@ func (cr *contactRetry) handleEvent(id string, state connections.ConnectionState
// reject events that contain invalid hostnames...we cannot connect to them
// and they could result in spurious connection attempts...
if tor.IsValidHostname(id) == false {
if !tor.IsValidHostname(id) {
return
}