From: David ‘Bombe’ Roden Date: Fri, 1 Nov 2019 21:57:57 +0000 (+0100) Subject: 🔥 Remove bucket parameter X-Git-Tag: v81^2~75 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=51bc501f9587a8acb6253fe4ad84f3069f52e191;p=Sone.git 🔥 Remove bucket parameter --- diff --git a/src/main/kotlin/net/pterodactylus/sone/freenet/wot/PluginWebOfTrustConnector.kt b/src/main/kotlin/net/pterodactylus/sone/freenet/wot/PluginWebOfTrustConnector.kt index 78eb036..96b906b 100644 --- a/src/main/kotlin/net/pterodactylus/sone/freenet/wot/PluginWebOfTrustConnector.kt +++ b/src/main/kotlin/net/pterodactylus/sone/freenet/wot/PluginWebOfTrustConnector.kt @@ -19,7 +19,6 @@ package net.pterodactylus.sone.freenet.wot import com.google.inject.* import freenet.support.* -import freenet.support.api.* import net.pterodactylus.sone.freenet.* import net.pterodactylus.sone.freenet.plugin.* import net.pterodactylus.sone.utils.NumberParsers.* @@ -132,9 +131,9 @@ class PluginWebOfTrustConnector @Inject constructor(private val pluginConnector: performRequest(SimpleFieldSetBuilder().put("Message", "Ping").get()) } - private fun performRequest(fields: SimpleFieldSet, data: Bucket? = null): PluginReply { + private fun performRequest(fields: SimpleFieldSet): PluginReply { logger.log(Level.FINE, format("Sending FCP Request: %s", fields.get("Message"))) - val pluginReply = pluginConnector.sendRequest(WOT_PLUGIN_NAME, "", fields, data) + val pluginReply = pluginConnector.sendRequest(WOT_PLUGIN_NAME, "", fields) logger.log(Level.FINEST, format("Received FCP Response for %s: %s", fields.get("Message"), pluginReply.fields.get("Message"))) if ("Error" == pluginReply.fields.get("Message")) { throw PluginException("Could not perform request for " + fields.get("Message"))