Fix circular dependency

This commit is contained in:
2020-08-19 19:02:15 +02:00
parent 68109f8666
commit 08c804ccb5
10 changed files with 42 additions and 28 deletions
+2 -1
View File
@@ -1,8 +1,9 @@
package be.simplenotes.search
import be.simplenotes.domain.usecases.search.NoteSearcher
import org.koin.dsl.module
import java.nio.file.Path
val searchModule = module {
single { NoteSearcher(Path.of(".lucene")) }
single<NoteSearcher> { NoteSearcherImpl(Path.of(".lucene")) }
}