mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-23 21:18:58 +00:00
(download-sample) Break apart actor for better error recovery
Change also adds logged events to give more feedback that something is happening.
This commit is contained in:
parent
45d3e6aa71
commit
db5faeceee
@ -141,13 +141,6 @@ public class DownloadSampleActor extends RecordActorPrototype {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
enum States {
|
|
||||||
DOWNLOADING,
|
|
||||||
EXTRACTING,
|
|
||||||
CLEANUP,
|
|
||||||
END
|
|
||||||
}
|
|
||||||
|
|
||||||
private void transferBytes(InputStream inputStream, OutputStream outputStream, byte[] buffer, long size)
|
private void transferBytes(InputStream inputStream, OutputStream outputStream, byte[] buffer, long size)
|
||||||
throws IOException
|
throws IOException
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user