Closed diaohancai closed 11 months ago
None
org.apache.hugegraph.computer.core.common.ContainerInfo found incorrect comment.
/* * There is only 1 master, and the id of master is -1. * The id of workers start from 0. The id is used to identify a worker. */ private int id;
this.masterInfo = new ContainerInfo(ContainerInfo.MASTER_ID, TransportUtil.host(rpcAddress), rpcAddress.getPort()); int ContainerInfo.MASTER_ID = 0;
private void assignIdForWorkers(List<ContainerInfo> containers) { // Assign worker id from 1. for (int i = 0; i < containers.size(); i++) { containers.get(i).id(i + 1); } }
So:
Bug Type (问题类型)
None
Before submit
Environment (环境信息)
Expected & Actual behavior (期望与实际表现)
org.apache.hugegraph.computer.core.common.ContainerInfo found incorrect comment.
Incorrect comment:
Actual code:
So: