remove connections

This commit is contained in:
joy.zhou
2019-08-16 18:01:35 +08:00
parent 7b771adaa4
commit ea86b44d83
2 changed files with 0 additions and 13 deletions

View File

@@ -22,19 +22,6 @@ func InitHTTPMoniter(b *Broker) {
c.JSON(200, &resp)
})
router.GET("api/v1/connections", func(c *gin.Context) {
num := 0
b.clients.Range(func(key, value interface{}) bool {
num++
return true
})
resp := map[string]int{
"code": 0,
"counts": num,
}
c.JSON(200, &resp)
})
router.GET("api/v1/nodes", func(c *gin.Context) {
num := 0
b.clients.Range(func(key, value interface{}) bool {