feed: use caching okhttp client

This commit is contained in:
Adam
2019-10-02 15:59:53 -04:00
parent 1fa8409265
commit 2af98eacfc
2 changed files with 14 additions and 2 deletions
@@ -64,10 +64,12 @@ public class FeedPlugin extends Plugin
@Inject
private ScheduledExecutorService executorService;
@Inject
private FeedClient feedClient;
private FeedPanel feedPanel;
private NavigationButton navButton;
private FeedClient feedClient = new FeedClient();
private Supplier<FeedResult> feedSupplier = Suppliers.memoizeWithExpiration(() ->
{
try