Skip to content

Commit

Permalink
Resolve syntax errors
Browse files Browse the repository at this point in the history
  • Loading branch information
周倬贤 committed Jun 14, 2024
1 parent 1bcb578 commit 90959ac
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,13 +273,13 @@ public void updateHealthCheckConfigs(DataServiceWrapper dataServiceWrapper) {
.host(store.getHost())
.port(store.getPort())
.build());
checkResultEntities.add(HealthCheckResultEntity.builder()
.clusterId(store.getClusterId())
.type(4)
.typeId(store.getId())
.state(4)
.resultDesc("initializing check client")
.build());
HealthCheckResultEntity healthCheckResultEntity = new HealthCheckResultEntity();
healthCheckResultEntity.setClusterId(store.getClusterId());
healthCheckResultEntity.setType(4);
healthCheckResultEntity.setTypeId(store.getId());
healthCheckResultEntity.setState(4);
healthCheckResultEntity.setResultDesc("initializing check client");
checkResultEntities.add(healthCheckResultEntity);
}

dataServiceWrapper.getHealthDataService().batchInsertNewCheckResult(checkResultEntities);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
*/
public interface ConnectorDataService {

Long createConnector(ConnectorEntity connectorEntity);
void createConnector(ConnectorEntity connectorEntity);

List<ConnectorEntity> selectAll();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ public class ConnectorDataServiceImpl implements ConnectorDataService {
private ConnectorMapper connectorMapper;

@Override
public Long createConnector(ConnectorEntity connectorEntity) {
return connectorMapper.insert(connectorEntity);
public void createConnector(ConnectorEntity connectorEntity) {
connectorMapper.insert(connectorEntity);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,9 @@ public List<ConfigEntity> selectToFront(Long instanceId, Integer type, GetConfig
public void insertDefaultConfigToCache() {
List<ConfigEntity> configEntityList = configMapper.selectAllDefaultConfig();
configEntityList.forEach(n -> {
DefaultConfigKey defaultConfigKey = new DefaultConfigKey(n.getBusinessType(), n.getConfigName());
DefaultConfigKey defaultConfigKey = new DefaultConfigKey();
defaultConfigKey.setConfigName(n.getConfigName());
defaultConfigKey.setBusinessType(n.getBusinessType());
defaultConfigCache.putIfAbsent(defaultConfigKey, n.getConfigValue());

});
Expand Down

0 comments on commit 90959ac

Please sign in to comment.