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 d47acd7 commit 01f0c28
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 01f0c28

Please sign in to comment.