From c7d7acf5f7325f4b8ffa8c564275782601a79059 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 3 Jan 2011 15:04:59 +0100 Subject: [PATCH] Use a timed map to forget all trust values after a minute. --- src/main/java/net/pterodactylus/sone/freenet/wot/DefaultIdentity.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/pterodactylus/sone/freenet/wot/DefaultIdentity.java b/src/main/java/net/pterodactylus/sone/freenet/wot/DefaultIdentity.java index dcafb18..f00fa4e 100644 --- a/src/main/java/net/pterodactylus/sone/freenet/wot/DefaultIdentity.java +++ b/src/main/java/net/pterodactylus/sone/freenet/wot/DefaultIdentity.java @@ -30,6 +30,7 @@ import net.pterodactylus.util.cache.DefaultCacheItem; import net.pterodactylus.util.cache.MemoryCache; import net.pterodactylus.util.cache.ValueRetriever; import net.pterodactylus.util.cache.WritableCache; +import net.pterodactylus.util.collection.TimedMap; /** * A Web of Trust identity. @@ -69,7 +70,7 @@ public class DefaultIdentity implements Identity { } } - }); + }, new TimedMap>(60000)); /** * Creates a new identity. -- 2.7.4