metric: clear useless proxy statistics data

This commit is contained in:
fatedier
2017-05-26 02:00:00 +08:00
parent 08b0885564
commit f0dc3ed47b
2 changed files with 41 additions and 10 deletions

View File

@ -268,7 +268,7 @@ func (ctl *Control) stoper() {
for _, pxy := range ctl.proxies {
pxy.Close()
ctl.svr.DelProxy(pxy.GetName())
StatsCloseProxy(pxy.GetConf().GetBaseInfo().ProxyType)
StatsCloseProxy(pxy.GetName(), pxy.GetConf().GetBaseInfo().ProxyType)
}
ctl.allShutdown.Done()