Skip to content
Snippets Groups Projects
Commit a7673bd1 authored by wangwx's avatar wangwx
Browse files

fix panic error

parent 5872676e
No related branches found
No related tags found
No related merge requests found
......@@ -392,6 +392,7 @@ func (p *gettyRPCClientPool) get() (*gettyRPCClient, error) {
if d := now - conn.getActive(); d > p.ttl {
p.remove(conn)
go conn.close()
num = len(p.conns)
continue
}
conn.updateActive(now) //update active time
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment