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:
parent
96aba8eff7
commit
c3afb3434d
3 changed files with 112 additions and 111 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue