diff --git a/cmd/stupgrades/main.go b/cmd/stupgrades/main.go index 3b2c79ff2..66c40dc29 100644 --- a/cmd/stupgrades/main.go +++ b/cmd/stupgrades/main.go @@ -57,7 +57,7 @@ type githubReleases struct { url string } -func (p *githubReleases) ServeHTTP(w http.ResponseWriter, req *http.Request) { +func (p *githubReleases) ServeHTTP(w http.ResponseWriter, _ *http.Request) { log.Println("Fetching", p.url) rels := upgrade.FetchLatestReleases(p.url, "") if rels == nil { diff --git a/lib/connections/relay_dial.go b/lib/connections/relay_dial.go index d79719533..d21d956d5 100644 --- a/lib/connections/relay_dial.go +++ b/lib/connections/relay_dial.go @@ -65,7 +65,7 @@ func (d *relayDialer) Dial(ctx context.Context, id protocol.DeviceID, uri *url.U return newInternalConn(tc, connTypeRelayClient, false, d.wanPriority), nil } -func (d *relayDialer) Priority(host string) int { +func (d *relayDialer) Priority(_ string) int { return d.wanPriority }