(crawler) Fix resource leak in crawler
A 10 MB thread local buffer wasn't static. Oops.
This commit is contained in:
parent
9707366348
commit
f811a29f87
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ public class WarcRecorder implements AutoCloseable {
|
|||
private final Path warcFile;
|
||||
private static final Logger logger = LoggerFactory.getLogger(WarcRecorder.class);
|
||||
|
||||
private final ThreadLocal<byte[]> bufferThreadLocal = ThreadLocal.withInitial(() -> new byte[MAX_SIZE]);
|
||||
private final static ThreadLocal<byte[]> bufferThreadLocal = ThreadLocal.withInitial(() -> new byte[MAX_SIZE]);
|
||||
|
||||
private boolean temporaryFile = false;
|
||||
|
||||
|
|
Loading…
Reference in a new issue