fixed examples

This commit is contained in:
ChronosX88 2019-05-10 12:33:27 +04:00
parent abb87473b0
commit 3d58d966bf
2 changed files with 3 additions and 2 deletions

View File

@ -12,7 +12,7 @@ import java.net.UnknownHostException;
public class MainClientServer {
public static void main(String[] args) {
GunSuperPeer gunSuperNode = new GunSuperPeer(21334);
GunSuperPeer gunSuperNode = new GunSuperPeer(21334, new InMemoryGraph());
gunSuperNode.start();
new Thread(() -> {
Gun gun = null;

View File

@ -1,10 +1,11 @@
package io.github.chronosx88.JGUN.examples;
import io.github.chronosx88.JGUN.nodes.GunSuperPeer;
import io.github.chronosx88.JGUN.storageBackends.InMemoryGraph;
public class MainServer {
public static void main(String[] args) {
GunSuperPeer gunSuperNode = new GunSuperPeer(5054);
GunSuperPeer gunSuperNode = new GunSuperPeer(5054, new InMemoryGraph());
gunSuperNode.start();
}
}