remove unused filed

This commit is contained in:
hzxuzhonghu 2017-09-29 14:44:13 +08:00
parent 1cd6a50809
commit b8100ceec3

View File

@ -46,9 +46,6 @@ type envelopeTransformer struct {
// transformers is a thread-safe LRU cache which caches decrypted DEKs indexed by their encrypted form.
transformers *lru.Cache
// cacheSize is the maximum number of DEKs that are cached.
cacheSize int
// baseTransformerFunc creates a new transformer for encrypting the data with the DEK.
baseTransformerFunc func(cipher.Block) value.Transformer
}
@ -68,7 +65,6 @@ func NewEnvelopeTransformer(envelopeService Service, cacheSize int, baseTransfor
return &envelopeTransformer{
envelopeService: envelopeService,
transformers: cache,
cacheSize: cacheSize,
baseTransformerFunc: baseTransformerFunc,
}, nil
}