Skip to content

Commit 3792861

Browse files
committed
fmt
1 parent e11e2d2 commit 3792861

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

coderd/cryptokeys/cache.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,15 +104,17 @@ func WithCacheClock(clock quartz.Clock) CacheOption {
104104
// NewSigningCache instantiates a cache. Close should be called to release resources
105105
// associated with its internal timer.
106106
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) {
108109
if !isSigningKeyFeature(feature) {
109110
return nil, xerrors.Errorf("invalid feature: %s", feature)
110111
}
111112
return newCache(ctx, logger, fetcher, feature, opts...)
112113
}
113114

114115
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) {
116118
if !isEncryptionKeyFeature(feature) {
117119
return nil, xerrors.Errorf("invalid feature: %s", feature)
118120
}

0 commit comments

Comments
 (0)