@@ -104,15 +104,17 @@ func WithCacheClock(clock quartz.Clock) CacheOption {
104
104
// NewSigningCache instantiates a cache. Close should be called to release resources
105
105
// associated with its internal timer.
106
106
func NewSigningCache (ctx context.Context , logger slog.Logger , fetcher Fetcher ,
107
- feature codersdk.CryptoKeyFeature , opts ... func (* cache )) (SigningKeycache , error ) {
107
+ feature codersdk.CryptoKeyFeature , opts ... func (* cache ),
108
+ ) (SigningKeycache , error ) {
108
109
if ! isSigningKeyFeature (feature ) {
109
110
return nil , xerrors .Errorf ("invalid feature: %s" , feature )
110
111
}
111
112
return newCache (ctx , logger , fetcher , feature , opts ... )
112
113
}
113
114
114
115
func NewEncryptionCache (ctx context.Context , logger slog.Logger , fetcher Fetcher ,
115
- feature codersdk.CryptoKeyFeature , opts ... func (* cache )) (EncryptionKeycache , error ) {
116
+ feature codersdk.CryptoKeyFeature , opts ... func (* cache ),
117
+ ) (EncryptionKeycache , error ) {
116
118
if ! isEncryptionKeyFeature (feature ) {
117
119
return nil , xerrors .Errorf ("invalid feature: %s" , feature )
118
120
}
0 commit comments