From: David ‘Bombe’ Roden Date: Fri, 11 Nov 2016 06:22:58 +0000 (+0100) Subject: Use request client builder X-Git-Tag: 0.9.7^2~453 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=c8567f1c6105ae1aa8ffce59868ae2ccf0bfe4c2;p=Sone.git Use request client builder --- diff --git a/src/main/java/net/pterodactylus/sone/core/FreenetInterface.java b/src/main/java/net/pterodactylus/sone/core/FreenetInterface.java index a06b5b0..9b061c2 100644 --- a/src/main/java/net/pterodactylus/sone/core/FreenetInterface.java +++ b/src/main/java/net/pterodactylus/sone/core/FreenetInterface.java @@ -61,6 +61,7 @@ import freenet.keys.InsertableClientSSK; import freenet.keys.USK; import freenet.node.Node; import freenet.node.RequestClient; +import freenet.node.RequestClientBuilder; import freenet.node.RequestStarter; import freenet.support.api.Bucket; import freenet.support.api.RandomAccessBucket; @@ -93,17 +94,7 @@ public class FreenetInterface { /** The not-Sone-related USK callbacks. */ private final Map uriUskCallbacks = Collections.synchronizedMap(new HashMap()); - private final RequestClient imageInserts = new RequestClient() { - @Override - public boolean persistent() { - return false; - } - - @Override - public boolean realTimeFlag() { - return true; - } - }; + private final RequestClient imageInserts = new RequestClientBuilder().realTime().build(); /** * Creates a new Freenet interface.