code: func (f *freeClientPool) registerPeer(p *peer) {
  	if addr, ok := p.RemoteAddr().(*net.TCPAddr); ok {
  		if !f.connect(addr.IP.String(), p.id) {
  			f.removePeer(p.id)
  		}
  	}
  }
docs: // registerPeer implements clientPool