Skip to content
Snippets Groups Projects
Commit 5ae20ddc authored by AlexStocks's avatar AlexStocks
Browse files
parent b167b47d
No related branches found
No related tags found
No related merge requests found
......@@ -360,6 +360,13 @@ func (p *gettyRPCClientPool) put(conn *gettyRPCClient) {
return
}
// check whether @conn has existed in p.conns or not.
for i := range p.conns {
if p.conns[i] == conn {
return
}
}
if len(p.conns) >= p.size {
// delete @conn from client pool
// p.remove(conn)
......
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