فهرست منبع

remove stray unlock

Chris Bannister 10 سال پیش
والد
کامیت
77999d7f26
1فایلهای تغییر یافته به همراه0 افزوده شده و 1 حذف شده
  1. 0 1
      connectionpool.go

+ 0 - 1
connectionpool.go

@@ -241,7 +241,6 @@ func (p *policyConnPool) addHost(host *HostInfo) {
 	// TODO: policy should not have conns, it should have hosts and return a host
 	// iter which the pool will use to serve conns
 	p.hostPolicy.AddHost(host)
-	p.mu.Unlock()
 }
 
 func (p *policyConnPool) removeHost(addr string) {