Don't bother with a mutable transformer for identity

pull/6/head
Clayton Coleman 2017-06-17 09:18:59 -04:00
parent a57c33bd28
commit dac0d07546
No known key found for this signature in database
GPG Key ID: 3D16906B4F1C5CB3
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ func newETCD3Storage(c storagebackend.Config) (storage.Interface, DestroyFunc, e
}
transformer := c.Transformer
if transformer == nil {
transformer = value.NewMutableTransformer(value.IdentityTransformer)
transformer = value.IdentityTransformer
}
if c.Quorum {
return etcd3.New(client, c.Codec, c.Prefix, transformer), destroyFunc, nil