Fix doxygen comments

This commit is contained in:
Eelco Dolstra 2023-11-14 13:59:00 +01:00
parent 4329bdf6a3
commit 21140c987b

View file

@ -6,7 +6,7 @@
namespace nix::fetchers { namespace nix::fetchers {
/* /**
* A cache for arbitrary `Attrs` -> `Attrs` mappings with a timestamp * A cache for arbitrary `Attrs` -> `Attrs` mappings with a timestamp
* for expiration. * for expiration.
*/ */
@ -14,7 +14,7 @@ struct Cache
{ {
virtual ~Cache() { } virtual ~Cache() { }
/* /**
* Add a value to the cache. The cache is an arbitrary mapping of * Add a value to the cache. The cache is an arbitrary mapping of
* Attrs to Attrs. * Attrs to Attrs.
*/ */
@ -22,13 +22,13 @@ struct Cache
const Attrs & inAttrs, const Attrs & inAttrs,
const Attrs & infoAttrs) = 0; const Attrs & infoAttrs) = 0;
/* /**
* Look up a key with infinite TTL. * Look up a key with infinite TTL.
*/ */
virtual std::optional<Attrs> lookup( virtual std::optional<Attrs> lookup(
const Attrs & inAttrs) = 0; const Attrs & inAttrs) = 0;
/* /**
* Look up a key. Return nothing if its TTL has exceeded * Look up a key. Return nothing if its TTL has exceeded
* `settings.tarballTTL`. * `settings.tarballTTL`.
*/ */
@ -41,7 +41,7 @@ struct Cache
Attrs infoAttrs; Attrs infoAttrs;
}; };
/* /**
* Look up a key. Return a bool denoting whether its TTL has * Look up a key. Return a bool denoting whether its TTL has
* exceeded `settings.tarballTTL`. * exceeded `settings.tarballTTL`.
*/ */