fix:typo error (shading->sharding)

This commit is contained in:
bitvincent 2021-11-04 18:32:52 +08:00
parent 312b59c28e
commit 6adcf235fb
2 changed files with 7 additions and 7 deletions

View File

@ -16,7 +16,7 @@ import java.util.HashMap;
public class Contract extends SM2Verifiable implements Serializable {
public String key;
public ContractStartInfo startInfo = new ContractStartInfo();
public int shadingId;
public int shardingId;
public String sourcePath; // 用作name
// 通过setMask实现
public HashMap<String, JsonElement> Mask = new HashMap<>();
@ -40,12 +40,12 @@ public class Contract extends SM2Verifiable implements Serializable {
private boolean stateful = true; // manifest可配置
private YjsType yjsType;
public int getShadingId() {
return this.shadingId;
public int getShardingId() {
return this.shardingId;
}
public void setShadingId(int shadingId1) {
this.shadingId = shadingId1;
public void setShardingId(int shardingId) {
this.shardingId = shardingId;
}
public boolean getConfigUnit() {

View File

@ -9,7 +9,7 @@ public enum ContractExecType implements Serializable {
RequestAllResponseFirst,
RequestAllResponseHalf,
RequestAllResponseAll,
Shading;//分片执行模式
Sharding;//分片执行模式
public static ContractExecType getContractTypeByInt(int i) {
ContractExecType[] values = ContractExecType.values();
@ -28,7 +28,7 @@ public enum ContractExecType implements Serializable {
case RequestAllResponseAll:
case RequestAllResponseFirst:
case RequestAllResponseHalf:
case Shading:
case Sharding:
default:
break;
}