mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-22 07:48:52 -05:00
shared HTTP Client instance for all thumbnail requests
This commit is contained in:
parent
ea824ac4ba
commit
63aab06d3f
@ -60,7 +60,6 @@ public enum ThumbnailServices implements ThumbnailProvider {
|
||||
|
||||
// create if necessary
|
||||
CompletableFuture<HttpResponse<byte[]>>[] request = new CompletableFuture[ids.length];
|
||||
Resource<HttpClient> http = Resource.lazy(HttpClient::newHttpClient);
|
||||
|
||||
for (int i = 0; i < response.length; i++) {
|
||||
if (response[i] == null && index.get().contains(ids[i])) {
|
||||
@ -109,4 +108,7 @@ public enum ThumbnailServices implements ThumbnailProvider {
|
||||
return icons;
|
||||
}
|
||||
|
||||
}
|
||||
// shared HTTP Client instance for all thumbnail requests
|
||||
private static final Resource<HttpClient> http = Resource.lazy(HttpClient::newHttpClient);
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user