Skip to content

Commit

Permalink
fix example bug (#1308)
Browse files Browse the repository at this point in the history
Change-Id: I145e99de88aab45defe6cc00b960d945821edd1e
  • Loading branch information
zhoney authored Dec 23, 2020
1 parent b513c63 commit f6c9850
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit f6c9850

Please sign in to comment.