Commit 7cef63e8 authored by Benoit Lavenier's avatar Benoit Lavenier

[fix] Configure HttpClient with a custom retry handler

parent 33fb267f
Pipeline #4323 passed with stage
in 26 seconds
......@@ -115,8 +115,9 @@ public class NetworkServiceImpl extends BaseRemoteServiceImpl implements Network
@Override
public List<Peer> getPeers(final Peer mainPeer, Filter filter, Sort sort) {
int availableProcessors = Math.min(32, Runtime.getRuntime().availableProcessors());
return getPeers(mainPeer, filter, sort, new ScheduledThreadPoolExecutor(availableProcessors));
//int availableProcessors = Math.min(32, Runtime.getRuntime().availableProcessors());
//ExecutorService pool = new ScheduledThreadPoolExecutor(availableProcessors);
return getPeers(mainPeer, filter, sort, null);
}
@Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment