add tests

This commit is contained in:
kevin
2020-08-07 15:28:40 +08:00
parent 69ea425000
commit bca56ef8c3
3 changed files with 96 additions and 4 deletions

View File

@@ -169,7 +169,6 @@ func (p *p2cPicker) logStats() {
defer p.lock.Unlock()
for _, conn := range p.conns {
fmt.Println(conn.lag, conn.inflight)
stats = append(stats, fmt.Sprintf("conn: %s, load: %d, reqs: %d",
conn.addr.Addr, conn.load(), atomic.SwapInt64(&conn.requests, 0)))
}