@@ -312,7 +312,7 @@ resourceLoop:
312
312
t .Parallel ()
313
313
314
314
// Try to connect to the DERP server on the no-derp-proxy region.
315
- client , err := derphttp .NewClient (key .NewNode (), proxyAPI3 .Options .AccessURL .String (), func (format string , args ... any ) {})
315
+ client , err := derphttp .NewClient (key .NewNode (), proxyAPI3 .Options .AccessURL .String (), func (string , ... any ) {})
316
316
require .NoError (t , err )
317
317
318
318
ctx := testutil .Context (t , testutil .WaitLong )
@@ -405,7 +405,7 @@ func TestDERPEndToEnd(t *testing.T) {
405
405
proxyOnlyDERPMap .OmitDefaultRegions = true
406
406
return true
407
407
}, testutil .WaitLong , testutil .IntervalMedium )
408
- newDERPMapper := func (derpMap * tailcfg.DERPMap ) * tailcfg.DERPMap {
408
+ newDERPMapper := func (_ * tailcfg.DERPMap ) * tailcfg.DERPMap {
409
409
return proxyOnlyDERPMap
410
410
}
411
411
api .AGPL .DERPMapper .Store (& newDERPMapper )
@@ -577,7 +577,7 @@ func TestWorkspaceProxyDERPMeshProbe(t *testing.T) {
577
577
registerBrokenProxy := func (ctx context.Context , t * testing.T , primaryAccessURL * url.URL , accessURL , token string ) uuid.UUID {
578
578
t .Helper ()
579
579
// Create a HTTP server that always replies with 500.
580
- srv := httptest .NewServer (http .HandlerFunc (func (rw http.ResponseWriter , r * http.Request ) {
580
+ srv := httptest .NewServer (http .HandlerFunc (func (rw http.ResponseWriter , _ * http.Request ) {
581
581
rw .WriteHeader (http .StatusInternalServerError )
582
582
}))
583
583
t .Cleanup (srv .Close )
@@ -848,7 +848,7 @@ func TestWorkspaceProxyDERPMeshProbe(t *testing.T) {
848
848
proxy := coderdenttest .NewWorkspaceProxyReplica (t , api , client , & coderdenttest.ProxyOptions {
849
849
Name : "proxy-2" ,
850
850
ProxyURL : proxyURL ,
851
- ReplicaPingCallback : func (replicas []codersdk.Replica , err string ) {
851
+ ReplicaPingCallback : func (_ []codersdk.Replica , err string ) {
852
852
replicaPingErr <- err
853
853
},
854
854
})
0 commit comments