func (r *room) addPeer(p *Peer) {
	r.Lock()
	defer r.Unlock()
	r.peers[p.uid] = p
}
// addPeer add a peer to room
addPeer add a peer to room
// addPeer add a peer to room
func (r *room) addPeer(p *Peer) {
	r.Lock()
	defer r.Unlock()
	r.peers[p.uid] = p
}
func ( r * room ) addPeer ( p * Peer ) { r . Lock ( ) defer r . Unlock ( ) r . peers [ p . uid ] = p }
addPeer add a peer to room
addPeer add a peer to room