backport of commit 9d86e5e11112c938a13f181d907412537940eda0 (#25182)
Co-authored-by: Scott Miller <smiller@hashicorp.com>
This commit is contained in:
parent
45748cdf8a
commit
52562cc7bb
@ -55,7 +55,7 @@ func (t *ToggleableWrapper) Encrypt(ctx context.Context, bytes []byte, opts ...w
|
||||
return t.Wrapper.Encrypt(ctx, bytes, opts...)
|
||||
}
|
||||
|
||||
func (t ToggleableWrapper) Decrypt(ctx context.Context, info *wrapping.BlobInfo, opts ...wrapping.Option) ([]byte, error) {
|
||||
func (t *ToggleableWrapper) Decrypt(ctx context.Context, info *wrapping.BlobInfo, opts ...wrapping.Option) ([]byte, error) {
|
||||
t.l.RLock()
|
||||
defer t.l.RUnlock()
|
||||
if t.error != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user