From 26207ffd1b4e8935da69f99508f4817a6c70fa6d Mon Sep 17 00:00:00 2001 From: Zlatin Balevsky Date: Tue, 25 Jun 2019 07:53:24 +0100 Subject: [PATCH] add constructor --- core/src/main/groovy/com/muwire/core/hostcache/Host.groovy | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/groovy/com/muwire/core/hostcache/Host.groovy b/core/src/main/groovy/com/muwire/core/hostcache/Host.groovy index 65ecf308..138d9221 100644 --- a/core/src/main/groovy/com/muwire/core/hostcache/Host.groovy +++ b/core/src/main/groovy/com/muwire/core/hostcache/Host.groovy @@ -11,8 +11,9 @@ class Host { int failures,successes long lastAttempt - public Host(Destination destination) { + public Host(Destination destination, int clearInterval) { this.destination = destination + this.clearInterval = clearInterval } synchronized void onConnect() {