From 95c87b9eb0e3d19be92b3f6c738bf1b648009a32 Mon Sep 17 00:00:00 2001 From: ChronosX88 Date: Tue, 2 Apr 2019 15:10:27 +0400 Subject: [PATCH] Back to MVStore Storage Backend --- .../io/github/chronosx88/influence/logic/MainLogic.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/src/main/java/io/github/chronosx88/influence/logic/MainLogic.java b/app/src/main/java/io/github/chronosx88/influence/logic/MainLogic.java index 2704863..76010dd 100644 --- a/app/src/main/java/io/github/chronosx88/influence/logic/MainLogic.java +++ b/app/src/main/java/io/github/chronosx88/influence/logic/MainLogic.java @@ -85,17 +85,13 @@ public class MainLogic implements IMainLogicContract { new Thread(() -> { try { - StorageMapDB storageDisk = new StorageMapDB(peerID, context.getFilesDir(), new RSASignatureFactory()); peerDHT = new PeerBuilderDHT( new PeerBuilder(peerID) .ports(7243) .start() ) - //.storage(new StorageMVStore(peerID, context.getFilesDir())) - .storage(storageDisk) + .storage(new StorageMVStore(peerID, context.getFilesDir())) .start(); - JVMShutdownHook jvmShutdownHook = new JVMShutdownHook(storageDisk); - Runtime.getRuntime().addShutdownHook(jvmShutdownHook); try { String bootstrapIP = this.preferences.getString("bootstrapAddress", null); if(bootstrapIP == null) {