Skip to content

Commit 898296d

Browse files
committed
agent: print each analyzer connection
1 parent 64b8fe8 commit 898296d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

agent/agent.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ func (a *Agent) GetStatus() interface{} {
111111
}
112112

113113
analyzers := make(map[string]AnalyzerConnStatus)
114-
for id, status := range a.analyzerClientPool.GetStatus() {
114+
for _, status := range a.analyzerClientPool.GetStatus() {
115+
id := fmt.Sprintf("%s:%d", status.Addr, status.Port)
115116
analyzers[id] = AnalyzerConnStatus{
116117
WSConnStatus: status,
117118
IsMaster: status.Addr == masterAddr && status.Port == masterPort,

0 commit comments

Comments
 (0)