add empty constructors for easier testing

This commit is contained in:
Zlatin Balevsky
2018-07-11 13:18:46 +01:00
parent 29dfc1eeb1
commit 2e18b19d20
2 changed files with 2 additions and 2 deletions

View File

@@ -10,6 +10,7 @@ class HostPool {
def verified = new HashMap()
def unverified = new HashMap()
HostPool() {}
HostPool(maxFailures, maxAge) {
this.maxAge = maxAge
this.maxFailures = maxFailures

View File

@@ -7,13 +7,12 @@ import net.i2p.client.datagram.I2PDatagramMaker
class Pinger {
final def session
final def maker
Pinger(session) {
this.session = session
this.maker = new I2PDatagramMaker(session)
}
def ping(host, uuid) {
def maker = new I2PDatagramMaker(session)
def payload = new HashMap()
payload.type = "CrawlerPing"
payload.version = 1