add empty constructors for easier testing
This commit is contained in:
@@ -10,6 +10,7 @@ class HostPool {
|
||||
def verified = new HashMap()
|
||||
def unverified = new HashMap()
|
||||
|
||||
HostPool() {}
|
||||
HostPool(maxFailures, maxAge) {
|
||||
this.maxAge = maxAge
|
||||
this.maxFailures = maxFailures
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user