mirror of
https://github.com/ChronosX88/JGUN.git
synced 2024-11-21 14:02:19 +00:00
fixed examples
This commit is contained in:
parent
abb87473b0
commit
3d58d966bf
@ -12,7 +12,7 @@ import java.net.UnknownHostException;
|
|||||||
|
|
||||||
public class MainClientServer {
|
public class MainClientServer {
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
GunSuperPeer gunSuperNode = new GunSuperPeer(21334);
|
GunSuperPeer gunSuperNode = new GunSuperPeer(21334, new InMemoryGraph());
|
||||||
gunSuperNode.start();
|
gunSuperNode.start();
|
||||||
new Thread(() -> {
|
new Thread(() -> {
|
||||||
Gun gun = null;
|
Gun gun = null;
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
package io.github.chronosx88.JGUN.examples;
|
package io.github.chronosx88.JGUN.examples;
|
||||||
|
|
||||||
import io.github.chronosx88.JGUN.nodes.GunSuperPeer;
|
import io.github.chronosx88.JGUN.nodes.GunSuperPeer;
|
||||||
|
import io.github.chronosx88.JGUN.storageBackends.InMemoryGraph;
|
||||||
|
|
||||||
public class MainServer {
|
public class MainServer {
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
GunSuperPeer gunSuperNode = new GunSuperPeer(5054);
|
GunSuperPeer gunSuperNode = new GunSuperPeer(5054, new InMemoryGraph());
|
||||||
gunSuperNode.start();
|
gunSuperNode.start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user