Skip to content

Commit

Permalink
Fixed comp error
Browse files Browse the repository at this point in the history
  • Loading branch information
volodymyr-babak committed Nov 2, 2023
1 parent a816b20 commit 8594988
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class ResourceCloudProcessor extends BaseResourceProcessor {
public ListenableFuture<Void> processResourceMsgFromCloud(TenantId tenantId, ResourceUpdateMsg resourceUpdateMsg) {
TbResourceId tbResourceId = new TbResourceId(new UUID(resourceUpdateMsg.getIdMSB(), resourceUpdateMsg.getIdLSB()));
try {
edgeSynchronizationManager.getSync().set(true);
cloudSynchronizationManager.getSync().set(true);
switch (resourceUpdateMsg.getMsgType()) {
case ENTITY_CREATED_RPC_MESSAGE:
case ENTITY_UPDATED_RPC_MESSAGE:
Expand All @@ -57,7 +57,7 @@ public ListenableFuture<Void> processResourceMsgFromCloud(TenantId tenantId, Res
return handleUnsupportedMsgType(resourceUpdateMsg.getMsgType());
}
} finally {
edgeSynchronizationManager.getSync().remove();
cloudSynchronizationManager.getSync().remove();
}
return Futures.immediateFuture(null);
}
Expand Down

0 comments on commit 8594988

Please sign in to comment.