diff --git a/explorer/scan.go b/explorer/scan.go index d14550e..36288a8 100644 --- a/explorer/scan.go +++ b/explorer/scan.go @@ -185,9 +185,8 @@ func (e *Explorer) addHostScans(hosts chan Host) { if !ok { e.log.Debug("Host did not have any v2 siamux net addresses in its announcement, unable to scan", zap.Stringer("pk", host.PublicKey)) continue - } else { - scan, err = e.scanV2Host(locator, host) } + scan, err = e.scanV2Host(locator, host) } else { scan, err = e.scanV1Host(locator, host) } diff --git a/explorer/types.go b/explorer/types.go index 4774f85..58352b5 100644 --- a/explorer/types.go +++ b/explorer/types.go @@ -337,7 +337,7 @@ type Host struct { RHPV4Settings rhpv4.HostSettings `json:"rhpV4Settings"` } -// V2SiaMuxAddr returns the `Address` of the first TCP siamux `NetAddress` it +// V2SiamuxAddr returns the `Address` of the first TCP siamux `NetAddress` it // finds in the host's list of net addresses. The protocol for this address is // ProtocolTCPSiaMux. func (h Host) V2SiamuxAddr() (string, bool) {