Memleak fixes.

This commit is contained in:
2025-05-09 19:05:24 +01:00
parent 81000a824d
commit da70e69ad1
4 changed files with 120 additions and 30 deletions
+5
View File
@@ -149,6 +149,11 @@ type MockJWKCache struct {
Err error
}
// Close is a no-op for the mock.
func (m *MockJWKCache) Close() {
// No operation needed for the mock.
}
func (m *MockJWKCache) GetJWKS(ctx context.Context, jwksURL string, httpClient *http.Client) (*JWKSet, error) {
return m.JWKS, m.Err
}