From c24904d578e4efb648588ba1e7a369186a78b62a Mon Sep 17 00:00:00 2001 From: ChronosX88 Date: Tue, 16 Apr 2019 16:35:30 +0300 Subject: [PATCH] Fixed creating new instance of storage backend --- src/main/java/io/github/chronosx88/dhtBootstrap/Main.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/io/github/chronosx88/dhtBootstrap/Main.java b/src/main/java/io/github/chronosx88/dhtBootstrap/Main.java index 96d15ba..017b0c8 100644 --- a/src/main/java/io/github/chronosx88/dhtBootstrap/Main.java +++ b/src/main/java/io/github/chronosx88/dhtBootstrap/Main.java @@ -9,7 +9,6 @@ import net.tomp2p.peers.Number160; import net.tomp2p.relay.RelayType; import net.tomp2p.relay.tcp.TCPRelayServerConfig; import net.tomp2p.replication.IndirectReplication; -import net.tomp2p.storage.StorageDisk; import java.io.File; import java.io.FileInputStream; @@ -53,7 +52,7 @@ public class Main { peerDHT = new PeerBuilderDHT(new PeerBuilder(peerID).ports(7243).start()) .storage( - new StorageDisk( + new StorageMapDB( peerID, new File(DATA_DIR_PATH), new RSASignatureFactory()