mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-24 05:18:58 +00:00
(warc) Fix resync
This commit is contained in:
parent
4c9bc13309
commit
d72e871265
@ -11,6 +11,7 @@ import org.slf4j.Logger;
|
|||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import java.io.UncheckedIOException;
|
||||||
import java.nio.file.Path;
|
import java.nio.file.Path;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -39,7 +40,7 @@ public class CrawlerWarcResynchronizer {
|
|||||||
for (var item : reader) {
|
for (var item : reader) {
|
||||||
accept(item);
|
accept(item);
|
||||||
}
|
}
|
||||||
} catch (IOException e) {
|
} catch (UncheckedIOException | IOException e) {
|
||||||
logger.info(STR."Failed read full warc file \{tempFile}", e);
|
logger.info(STR."Failed read full warc file \{tempFile}", e);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -48,7 +49,7 @@ public class CrawlerWarcResynchronizer {
|
|||||||
for (var item : reader) {
|
for (var item : reader) {
|
||||||
recorder.resync(item);
|
recorder.resync(item);
|
||||||
}
|
}
|
||||||
} catch (IOException e) {
|
} catch (UncheckedIOException | IOException e) {
|
||||||
logger.info(STR."Failed read full warc file \{tempFile}", e);
|
logger.info(STR."Failed read full warc file \{tempFile}", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user