Skip to content

Commit abbe531

Browse files
fix(ms-gateway): locked method must be public (#52)
1 parent 7bc18c9 commit abbe531

File tree

1 file changed

+2
-2
lines changed
  • integrations/milesight-gateway/src/main/java/com/milesight/beaveriot/integrations/milesightgateway/service

1 file changed

+2
-2
lines changed

integrations/milesight-gateway/src/main/java/com/milesight/beaveriot/integrations/milesightgateway/service/GatewayService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ private Entity getAddDeviceGatewayEntity() {
176176
}
177177

178178
@DistributedLock(name = LockConstants.UPDATE_GATEWAY_DEVICE_ENUM_LOCK)
179-
private void putAddDeviceGatewayEui(List<Device> gateways) {
179+
public void putAddDeviceGatewayEui(List<Device> gateways) {
180180
Entity gatewayEuiEntity = getAddDeviceGatewayEntity();
181181
LinkedHashMap<String, String> attrEnum = json.convertValue(gatewayEuiEntity.getAttributes().get(AttributeBuilder.ATTRIBUTE_ENUM), new TypeReference<>() {});
182182
gateways.forEach(gateway -> attrEnum.put(getGatewayEui(gateway), gateway.getName()));
@@ -187,7 +187,7 @@ private void putAddDeviceGatewayEui(List<Device> gateways) {
187187
}
188188

189189
@DistributedLock(name = LockConstants.UPDATE_GATEWAY_DEVICE_ENUM_LOCK)
190-
private void removeAddDeviceGatewayEui(List<String> gatewayEuiList) {
190+
public void removeAddDeviceGatewayEui(List<String> gatewayEuiList) {
191191
Entity gatewayEuiEntity = getAddDeviceGatewayEntity();
192192
LinkedHashMap<String, String> attrEnum = json.convertValue(gatewayEuiEntity.getAttributes().get(AttributeBuilder.ATTRIBUTE_ENUM), new TypeReference<>() {});
193193
gatewayEuiList.forEach(eui -> attrEnum.remove(GatewayString.standardizeEUI(eui)));

0 commit comments

Comments
 (0)