cache service: don't skip already up to date archives

This commit is contained in:
Adam
2018-01-19 10:31:53 -05:00
parent 36acbebd1b
commit 244cce506c
3 changed files with 17 additions and 1 deletions

View File

@@ -279,6 +279,10 @@ public class CacheClient implements AutoCloseable
{
logger.debug("Archive {}/{} in index {} is up to date",
ad.getId(), indexData.getArchives().length, index.getId());
if (watcher != null)
{
watcher.alreadyUpToDate(existing);
}
continue;
}

View File

@@ -31,5 +31,7 @@ public interface DownloadWatcher
{
void indexComplete(Index index);
void alreadyUpToDate(Archive archive);
void downloadComplete(Archive archive, byte[] data);
}