Skip to content

Commit

Permalink
[INLONG-11461][Agent] HeartbeatManager does not create a DefaultMessa…
Browse files Browse the repository at this point in the history
…geSender (#11462)
  • Loading branch information
justinwwhuang authored Nov 7, 2024
1 parent a658a09 commit ad35873
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ private HeartbeatManager(AgentManager agentManager) {
httpManager = new HttpManager(conf);
baseManagerUrl = httpManager.getBaseUrl();
reportHeartbeatUrl = buildReportHeartbeatUrl(baseManagerUrl);
createMessageSender();
}

public static HeartbeatManager getInstance(AgentManager agentManager) {
Expand Down Expand Up @@ -121,9 +120,6 @@ private Runnable heartbeatReportThread() {
if (LOGGER.isDebugEnabled()) {
LOGGER.debug(" {} report heartbeat to manager", heartbeatMsg);
}
if (sender == null) {
createMessageSender();
}
AgentStatusManager.sendStatusMsg(sender);
FileStaticManager.sendStaticMsg(sender);
} catch (Throwable e) {
Expand Down

0 comments on commit ad35873

Please sign in to comment.