mirror of
https://gitee.com/BDWare/common
synced 2025-01-25 01:04:16 +00:00
fix:typo error (shading->sharding)
This commit is contained in:
parent
312b59c28e
commit
6adcf235fb
@ -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() {
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user