From 6adcf235fb16db9cc03b46d23918b791981d4174 Mon Sep 17 00:00:00 2001 From: bitvincent <896112698@qq.com> Date: Thu, 4 Nov 2021 18:32:52 +0800 Subject: [PATCH] fix:typo error (shading->sharding) --- src/main/entry/org/bdware/sc/bean/Contract.java | 10 +++++----- .../entry/org/bdware/sc/bean/ContractExecType.java | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/entry/org/bdware/sc/bean/Contract.java b/src/main/entry/org/bdware/sc/bean/Contract.java index c118cc7..59314dd 100644 --- a/src/main/entry/org/bdware/sc/bean/Contract.java +++ b/src/main/entry/org/bdware/sc/bean/Contract.java @@ -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 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() { diff --git a/src/main/entry/org/bdware/sc/bean/ContractExecType.java b/src/main/entry/org/bdware/sc/bean/ContractExecType.java index 3300d05..620e263 100644 --- a/src/main/entry/org/bdware/sc/bean/ContractExecType.java +++ b/src/main/entry/org/bdware/sc/bean/ContractExecType.java @@ -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; }