From f6c9850d5c0e023c2ec5035d1e3ec4676c6af71a Mon Sep 17 00:00:00 2001 From: zhoney Date: Wed, 23 Dec 2020 22:05:09 +0800 Subject: [PATCH] fix example bug (#1308) Change-Id: I145e99de88aab45defe6cc00b960d945821edd1e --- .../src/main/java/com/baidu/hugegraph/example/ExampleUtil.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hugegraph-example/src/main/java/com/baidu/hugegraph/example/ExampleUtil.java b/hugegraph-example/src/main/java/com/baidu/hugegraph/example/ExampleUtil.java index b6c51a7e98..3c63d1a2dd 100644 --- a/hugegraph-example/src/main/java/com/baidu/hugegraph/example/ExampleUtil.java +++ b/hugegraph-example/src/main/java/com/baidu/hugegraph/example/ExampleUtil.java @@ -26,10 +26,12 @@ import com.baidu.hugegraph.HugeException; import com.baidu.hugegraph.HugeFactory; import com.baidu.hugegraph.HugeGraph; +import com.baidu.hugegraph.backend.id.IdGenerator; import com.baidu.hugegraph.dist.RegisterUtil; import com.baidu.hugegraph.perf.PerfUtil; import com.baidu.hugegraph.task.HugeTask; import com.baidu.hugegraph.task.TaskScheduler; +import com.baidu.hugegraph.type.define.NodeRole; public class ExampleUtil { @@ -77,6 +79,7 @@ public static HugeGraph loadGraph(boolean needClear, boolean needProfile) { graph.clearBackend(); } graph.initBackend(); + graph.serverStarted(IdGenerator.of("server1"), NodeRole.MASTER); return graph; }