From a1879195a727d7b90347ed11f86d85fac6541df7 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Wed, 10 Jul 2024 14:39:34 +0200 Subject: Client + Discovery: Fetch dscovery at startup using DiscoveryStartup With a manager that locks and copies such that no race conditions happen --- internal/api/api_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/api') diff --git a/internal/api/api_test.go b/internal/api/api_test.go index 397dd3c..fcf02e9 100644 --- a/internal/api/api_test.go +++ b/internal/api/api_test.go @@ -196,7 +196,7 @@ func createTestAPI(t *testing.T, tok *eduoauth.Token, gt []string, hps []test.Ha Type: server.TypeCustom, BaseWK: serv.URL, BaseAuthWK: serv.URL, - ProcessAuth: func(ctx context.Context, in string) (string, error) { + ProcessAuth: func(_ context.Context, in string) (string, error) { return in, nil }, DisableAuthorize: false, -- cgit v1.2.3