feed: use caching okhttp client

This commit is contained in:
Adam
2019-09-27 22:19:46 -04:00
parent 1fa8409265
commit 2af98eacfc
2 changed files with 14 additions and 2 deletions

View File

@@ -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