mirror of
https://github.com/ChronosX88/Influence-Bootstrap-Node.git
synced 2024-11-10 02:11:00 +00:00
Fixed creating new instance of storage backend
This commit is contained in:
parent
8626d1a916
commit
c24904d578
@ -9,7 +9,6 @@ import net.tomp2p.peers.Number160;
|
|||||||
import net.tomp2p.relay.RelayType;
|
import net.tomp2p.relay.RelayType;
|
||||||
import net.tomp2p.relay.tcp.TCPRelayServerConfig;
|
import net.tomp2p.relay.tcp.TCPRelayServerConfig;
|
||||||
import net.tomp2p.replication.IndirectReplication;
|
import net.tomp2p.replication.IndirectReplication;
|
||||||
import net.tomp2p.storage.StorageDisk;
|
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.FileInputStream;
|
import java.io.FileInputStream;
|
||||||
@ -53,7 +52,7 @@ public class Main {
|
|||||||
peerDHT =
|
peerDHT =
|
||||||
new PeerBuilderDHT(new PeerBuilder(peerID).ports(7243).start())
|
new PeerBuilderDHT(new PeerBuilder(peerID).ports(7243).start())
|
||||||
.storage(
|
.storage(
|
||||||
new StorageDisk(
|
new StorageMapDB(
|
||||||
peerID,
|
peerID,
|
||||||
new File(DATA_DIR_PATH),
|
new File(DATA_DIR_PATH),
|
||||||
new RSASignatureFactory()
|
new RSASignatureFactory()
|
||||||
|
Loading…
Reference in New Issue
Block a user