Skip to content

Commit

Permalink
linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
chris124567 authored and ChrisSchinnerl committed Nov 19, 2024
1 parent a0c70f7 commit 3a63eb8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions explorer/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion explorer/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3a63eb8

Please sign in to comment.