From d4336e9b5d8134e3e6a37948af437265050ab036 Mon Sep 17 00:00:00 2001 From: Zlatin Balevsky Date: Fri, 7 Jun 2019 14:24:45 +0100 Subject: [PATCH] outbound nickname --- core/src/main/groovy/com/muwire/core/Core.groovy | 2 +- .../src/main/groovy/com/muwire/core/search/SearchIndex.groovy | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/core/src/main/groovy/com/muwire/core/Core.groovy b/core/src/main/groovy/com/muwire/core/Core.groovy index c76a8885..8fa7248f 100644 --- a/core/src/main/groovy/com/muwire/core/Core.groovy +++ b/core/src/main/groovy/com/muwire/core/Core.groovy @@ -92,7 +92,7 @@ public class Core { i2pOptionsFile.withInputStream { i2pOptions.load(it) } } else { i2pOptions["inbound.nickname"] = "MuWire" - i2pOptions["oubtound.nickname"] = "MuWire" + i2pOptions["outbound.nickname"] = "MuWire" i2pOptions["inbound.length"] = "3" i2pOptions["inbound.quantity"] = "2" i2pOptions["outbound.length"] = "3" diff --git a/core/src/main/groovy/com/muwire/core/search/SearchIndex.groovy b/core/src/main/groovy/com/muwire/core/search/SearchIndex.groovy index 783272c6..9f082bed 100644 --- a/core/src/main/groovy/com/muwire/core/search/SearchIndex.groovy +++ b/core/src/main/groovy/com/muwire/core/search/SearchIndex.groovy @@ -44,11 +44,15 @@ class SearchIndex { if (rv == null) { rv = forWord } else { + System.out.println("before retention $rv") rv.retainAll(forWord) + System.out.println("after retention") } } + System.out.println("rv is $rv") + if (rv != null) return rv.asList() []