(self, now, force=False, clear=False)
| 919 | return ChunkListEntry(id, size) |
| 920 | |
| 921 | def _maybe_write_chunks_cache(self, now, force=False, clear=False): |
| 922 | if force or now > self.chunks_cache_last_write + self.chunks_cache_write_td: |
| 923 | if self._chunks is not None: |
| 924 | write_chunkindex_to_repo_cache(self.repository, self._chunks, clear=clear) |
| 925 | self.chunks_cache_last_write = now |
| 926 | |
| 927 | def refresh_lock(self, now): |
| 928 | if now > self.last_refresh_dt + self.refresh_td: |
no test coverage detected