Add expiration LRU cache for webhook token authenticator.

This commit is contained in:
CJ Cullen
2016-05-14 16:35:11 -07:00
parent 066e70fac2
commit 57f96a932f
9 changed files with 38 additions and 18 deletions

View File

@@ -140,7 +140,7 @@ func newTokenAuthenticator(serverURL string, clientCert, clientKey, ca []byte) (
if err := json.NewEncoder(tempfile).Encode(config); err != nil {
return nil, err
}
return New(p)
return New(p, 0)
}
func TestTLSConfig(t *testing.T) {