remove recently added cache from KeyVariety

Adding that field broke the Read/Show serialization back-compat,
and also the Eq and Ord instances were not blinded to it, which broke
git annex fsck and probably more.

I think that the new approach used in formatKeyVariety will be nearly
as fast, but have not benchmarked it.
This commit is contained in:
Joey Hess 2019-01-16 16:33:08 -04:00
parent 96aba8eff7
commit c3afb3434d
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
3 changed files with 112 additions and 111 deletions

View file

@ -37,7 +37,7 @@ exportKey sha = mk <$> catKey sha
mk (Just k) = AnnexKey k
mk Nothing = GitKey $ Key
{ keyName = encodeBS $ Git.fromRef sha
, keyVariety = SHA1Key (HasExt False) mempty
, keyVariety = SHA1Key (HasExt False)
, keySize = Nothing
, keyMtime = Nothing
, keyChunkSize = Nothing