Revert "cache service: move database updating to happen during download"

This reverts commit 018843f3a34f343c32c59db259aae317193f9fc8.
This commit is contained in:
Adam
2018-01-19 14:13:02 -05:00
parent 1eeab55b01
commit 8eb37bb3db
4 changed files with 44 additions and 55 deletions

View File

@@ -264,11 +264,6 @@ public class CacheClient implements AutoCloseable
logger.info("Index {} has {} archives", i, indexData.getArchives().length);
if (watcher != null)
{
watcher.indexComplete(index);
}
for (ArchiveData ad : indexData.getArchives())
{
Archive existing = index.getArchive(ad.getId());

View File

@@ -25,11 +25,9 @@
package net.runelite.cache.client;
import net.runelite.cache.fs.Archive;
import net.runelite.cache.fs.Index;
@FunctionalInterface
public interface DownloadWatcher
{
void indexComplete(Index index);
void downloadComplete(Archive archive, byte[] data);
}