Skip to content

Commit 0526416

Browse files
committed
fix copilot comments
1 parent ca9fc49 commit 0526416

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

engine/orchestration/src/main/java/com/cloud/agent/manager/AgentAttache.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ public void process(final Answer[] answers) {
500500

501501
@Override
502502
public int hashCode() {
503-
return Objects.hash(logger, _id, _uuid, _name, _waitForList, _requests, _currentSequence, _status, _maintenance, _nextSequence, _agentMgr);
503+
return Objects.hash(_id, _uuid, _name);
504504
}
505505

506506
protected class Alarm extends ManagedContextRunnable {

engine/orchestration/src/main/java/com/cloud/agent/manager/DirectAgentAttache.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ private synchronized void scheduleFromQueue() {
151151

152152
@Override
153153
public int hashCode() {
154-
return Objects.hash(super.hashCode(), _HostPingRetryCount, _HostPingRetryTimer, _resource, _futures, _seq, tasks, _outstandingTaskCount, _outstandingCronTaskCount);
154+
return super.hashCode();
155155
}
156156

157157
protected class PingTask extends ManagedContextRunnable {

0 commit comments

Comments
 (0)