From 920370701919c6cc8b9194af5d1c2c7d6dd8601b Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 30 Dec 2010 20:34:15 +0100 Subject: [PATCH] Create our own realtime client for requests. --- src/main/java/net/pterodactylus/sone/core/FreenetInterface.java | 6 ++---- src/main/java/net/pterodactylus/sone/main/SonePlugin.java | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main/java/net/pterodactylus/sone/core/FreenetInterface.java b/src/main/java/net/pterodactylus/sone/core/FreenetInterface.java index f5d7b66..6737d63 100644 --- a/src/main/java/net/pterodactylus/sone/core/FreenetInterface.java +++ b/src/main/java/net/pterodactylus/sone/core/FreenetInterface.java @@ -65,12 +65,10 @@ public class FreenetInterface { * * @param node * The node to interact with - * @param client - * The high-level client */ - public FreenetInterface(Node node, HighLevelSimpleClient client) { + public FreenetInterface(Node node) { this.node = node; - this.client = client; + this.client = node.clientCore.makeClient(RequestStarter.INTERACTIVE_PRIORITY_CLASS, false, true); } // diff --git a/src/main/java/net/pterodactylus/sone/main/SonePlugin.java b/src/main/java/net/pterodactylus/sone/main/SonePlugin.java index 2980b68..c5c8835 100644 --- a/src/main/java/net/pterodactylus/sone/main/SonePlugin.java +++ b/src/main/java/net/pterodactylus/sone/main/SonePlugin.java @@ -167,7 +167,7 @@ public class SonePlugin implements FredPlugin, FredPluginL10n, FredPluginBaseL10 } /* create freenet interface. */ - FreenetInterface freenetInterface = new FreenetInterface(pluginRespirator.getNode(), pluginRespirator.getHLSimpleClient()); + FreenetInterface freenetInterface = new FreenetInterface(pluginRespirator.getNode()); /* create web of trust connector. */ PluginConnector pluginConnector = new PluginConnector(pluginRespirator); -- 2.7.4