Skip to content

Commit

Permalink
[Chore][Zeta] Remove redundant code (#4489)
Browse files Browse the repository at this point in the history
  • Loading branch information
TyrantLucifer authored Apr 4, 2023
1 parent 7d04b47 commit 17720b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public void execute() throws CommandExecuteException {
StringUtils.isNotEmpty(clusterName)
? clusterName
: Constant.DEFAULT_SEATUNNEL_CLUSTER_NAME);
instance = createServerInLocal(clusterName);
instance = createServerInLocal(clusterName, seaTunnelConfig);
}
if (StringUtils.isNotEmpty(clusterName)) {
seaTunnelConfig.getHazelcastConfig().setClusterName(clusterName);
Expand Down Expand Up @@ -227,8 +227,8 @@ private void closeClient() {
}
}

private HazelcastInstance createServerInLocal(String clusterName) {
SeaTunnelConfig seaTunnelConfig = ConfigProvider.locateAndGetSeaTunnelConfig();
private HazelcastInstance createServerInLocal(
String clusterName, SeaTunnelConfig seaTunnelConfig) {
seaTunnelConfig.getHazelcastConfig().setClusterName(clusterName);
return HazelcastInstanceFactory.newHazelcastInstance(
seaTunnelConfig.getHazelcastConfig(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@

package org.apache.seatunnel.engine.client;

import org.apache.seatunnel.shade.com.fasterxml.jackson.databind.ObjectMapper;

import org.apache.seatunnel.common.utils.JsonUtils;
import org.apache.seatunnel.engine.client.job.JobClient;
import org.apache.seatunnel.engine.client.job.JobExecutionEnvironment;
Expand All @@ -41,7 +39,6 @@
import java.util.Set;

public class SeaTunnelClient implements SeaTunnelClientInstance {
private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper();
private final SeaTunnelHazelcastClient hazelcastClient;
@Getter private final JobClient jobClient;

Expand Down

0 comments on commit 17720b5

Please sign in to comment.