Skip to content

Commit

Permalink
agent: print each analyzer connection
Browse files Browse the repository at this point in the history
  • Loading branch information
nplanel committed Jul 30, 2018
1 parent 64b8fe8 commit 898296d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ func (a *Agent) GetStatus() interface{} {
}

analyzers := make(map[string]AnalyzerConnStatus)
for id, status := range a.analyzerClientPool.GetStatus() {
for _, status := range a.analyzerClientPool.GetStatus() {
id := fmt.Sprintf("%s:%d", status.Addr, status.Port)
analyzers[id] = AnalyzerConnStatus{
WSConnStatus: status,
IsMaster: status.Addr == masterAddr && status.Port == masterPort,
Expand Down

0 comments on commit 898296d

Please sign in to comment.