mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 01:07:18 +03:00
70af09db51
* kvutils: Remove QueryableReadSet, and simplify caching a little. * kvutils: Generalize the caching ledger state reader. CHANGELOG_BEGIN CHANGELOG_END * kvutils: Make StateReader even more general (no Option). * kvutils: Convert LedgerStateReaderWithFingerprints to a type alias. And DamlLedgerStateReaderWithFingerprints too. * kvutils: Replace LedgerStateReaderWithFingerprintsFromValues. With LedgerStateOperationsReader and a `.map`. * kvutils: Replace RawToDamlLedgerStateReaderWithFingerprintsAdapter. With a `.comapKeys`. * kvutils: Delete duplicate caching code. * caching: Move `Cache#get` into its own subtrait. This method is used by the submission validator, but not by the caching state readers. * caching: Move cache mapping from CachingStateReader into Cache. * caching: Remove an over-eager comment. * kvutils: Rename `StateReader#comapKeys` to `contramapKeys`. I got contravariant functors confused with cofunctors. * caching: Add Scaladoc and improve parameter names in MappedCache. * kvutils: Adapters everywhere! * caching: Rename the base test class. |
||
---|---|---|
.. | ||
src | ||
BUILD.bazel |